Skip to content

Commit

Permalink
fix: handled the undefine and null for allowCredentials
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <[email protected]>
  • Loading branch information
tipusinghaw committed Mar 26, 2024
1 parent 3cf5094 commit 4433e65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Authentication/SignInUserPasskey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ const SignInUserPasskey = (signInUserProps: signInUserProps) => {
setFidoUserError(generateAuthenticationResponse?.data?.error);

const opts = generateAuthenticationResponse?.data?.data;
if (opts) {
opts.allowCredentials = [] // to fix the paaskey issue(Patch on PROD)
}
const attResp = await startAuthentication(opts);
opts.allowCredentials = [] // to fix the paaskey issue(Patch on PROD)
const verifyAuthenticationObj = {
...attResp,
challangeId,
Expand Down

0 comments on commit 4433e65

Please sign in to comment.