From 97c8c9e25234847622f1ab508cd5d50758d323c0 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Wed, 2 Mar 2022 10:12:14 +0100 Subject: [PATCH] feat(webauthn): use plain bytes for wrapped user --- selfservice/strategy/webauthn/mock.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/selfservice/strategy/webauthn/mock.go b/selfservice/strategy/webauthn/mock.go index ca829d32f489..aba60aa47c3f 100644 --- a/selfservice/strategy/webauthn/mock.go +++ b/selfservice/strategy/webauthn/mock.go @@ -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 {