Skip to content

Commit

Permalink
feat(webauthn): use plain bytes for wrapped user
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 7, 2022
1 parent 145af23 commit 97c8c9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selfservice/strategy/webauthn/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ package webauthn

import (
"github.com/duo-labs/webauthn/webauthn"
"github.com/gofrs/uuid"
)

type wrappedUser struct {
id uuid.UUID
id []byte
c []webauthn.Credential
}

var _ webauthn.User = (*wrappedUser)(nil)

func (user *wrappedUser) WebAuthnID() []byte {
return user.id[:]
return user.id
}

func (user *wrappedUser) WebAuthnName() string {
Expand Down

0 comments on commit 97c8c9e

Please sign in to comment.