fix(auth): add cross-platform authenticator selection option

This commit is contained in:
Karol Sójko
2023-02-24 11:45:33 +01:00
parent 74e1380df8
commit edc4a20859
@@ -34,6 +34,10 @@ export class GenerateAuthenticatorRegistrationOptions implements UseCaseInterfac
userID: userUuid.value,
userName: username.value,
attestationType: 'none',
authenticatorSelection: {
authenticatorAttachment: 'cross-platform',
userVerification: 'discouraged',
},
excludeCredentials: authenticators.map((authenticator) => ({
id: authenticator.props.credentialId,
type: 'public-key',