fix: request empty prf options during registration to prevent typeerror on credentials container create
This commit is contained in:
@@ -84,11 +84,7 @@ export async function registerUser(username: string): Promise<RegistrationResult
|
|||||||
if (!options.extensions) {
|
if (!options.extensions) {
|
||||||
options.extensions = {}
|
options.extensions = {}
|
||||||
}
|
}
|
||||||
options.extensions.prf = {
|
options.extensions.prf = {}
|
||||||
eval: {
|
|
||||||
first: PRF_SALT.buffer
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. Start biometric Passkey creation
|
// 2. Start biometric Passkey creation
|
||||||
const credentialResponse = await startRegistration({ optionsJSON: options })
|
const credentialResponse = await startRegistration({ optionsJSON: options })
|
||||||
|
|||||||
Reference in New Issue
Block a user