Passkey Failed to verify authentication

Hi, I am facing an issue where my password manager prompts me to use passkey when page use Conditional UI. Error: Unexpected authentication response challenge "AB", expected "AA" This is my auth config
passkey({
rpID: new URL(env.NEXT_PUBLIC_BASE_URL).hostname,
rpName: siteConfig.name,
origin: env.NEXT_PUBLIC_BASE_URL,
})
passkey({
rpID: new URL(env.NEXT_PUBLIC_BASE_URL).hostname,
rpName: siteConfig.name,
origin: env.NEXT_PUBLIC_BASE_URL,
})
1 Reply
ulic
ulic5mo ago
I'm experiencing the same issue. I noticed that the ExpiresAt value in the database appears to be static for every attempt and in the past (server start time?). I'm not sure if that's relevant or not. I can't see to get passkeys to work in my development environment. I got it to work using the below. Which doesn't matter to me in basic development, but not sure this is the right production solution.
passkey({
authenticatorSelection: {
userVerification: 'discouraged',
},
}),
passkey({
authenticatorSelection: {
userVerification: 'discouraged',
},
}),
Hmm, no that doesn't do it either. I guess sometimes it works and sometimes it doesn't. I'm perplexed.

Did you find this page helpful?