mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
fix: passkey options
This commit is contained in:
@@ -92,9 +92,11 @@ export default function RegisterPasskey({
|
|||||||
return submitRegister().then((resp: RegisterPasskeyResponse) => {
|
return submitRegister().then((resp: RegisterPasskeyResponse) => {
|
||||||
const passkeyId = resp.passkeyId;
|
const passkeyId = resp.passkeyId;
|
||||||
const options: CredentialCreationOptions =
|
const options: CredentialCreationOptions =
|
||||||
(resp.publicKeyCredentialCreationOptions?.toJson() as CredentialCreationOptions) ??
|
(resp.publicKeyCredentialCreationOptions as CredentialCreationOptions) ??
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
console.log(options);
|
||||||
|
|
||||||
if (options?.publicKey) {
|
if (options?.publicKey) {
|
||||||
options.publicKey.challenge = coerceToArrayBuffer(
|
options.publicKey.challenge = coerceToArrayBuffer(
|
||||||
options.publicKey.challenge,
|
options.publicKey.challenge,
|
||||||
|
|||||||
Reference in New Issue
Block a user