Skip to content

Commit

Permalink
fix(alchemy-signer): missing transports on iOS during passkey creation (
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 authored Feb 26, 2024
1 parent 9835574 commit 740946f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/alchemy/src/signer/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,14 @@ export class AlchemySignerClient {
signal: options?.signal,
});

// on iOS sometimes this is returned as empty or null, so handling that here
if (attestation.transports == null || attestation.transports.length === 0) {
attestation.transports = [
"AUTHENTICATOR_TRANSPORT_INTERNAL",
"AUTHENTICATOR_TRANSPORT_HYBRID",
];
}

return { challenge, authenticatorUserId, attestation };
};
}

0 comments on commit 740946f

Please sign in to comment.