Skip to content

Commit

Permalink
chore: Fix missing props at __unstable__getPublicCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNti committed Oct 24, 2024
1 parent dc2c636 commit 1b742a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/expo/src/provider/singleton/createClerkInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ export function createClerkInstance(ClerkClass: typeof Clerk) {
};

// @ts-expect-error - This is an internal API
__internal_clerk.__unstable__getPublicCredentials = (
publicKeyOptions: PublicKeyCredentialRequestOptionsWithoutExtensions,
) => {
__internal_clerk.__unstable__getPublicCredentials = ({
publicKeyOptions,
}: {
publicKeyOptions: PublicKeyCredentialRequestOptionsWithoutExtensions;
}) => {
return options?.passkeys?.get
? options?.passkeys?.get({ publicKeyOptions })
: errorThrower.throw('get() for passkeys is missing');
Expand Down

0 comments on commit 1b742a8

Please sign in to comment.