Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAuthn (passkey) Recovery Flow #318

Open
kkarkos opened this issue Jan 4, 2025 · 1 comment
Open

WebAuthn (passkey) Recovery Flow #318

kkarkos opened this issue Jan 4, 2025 · 1 comment

Comments

@kkarkos
Copy link

kkarkos commented Jan 4, 2025

Hi there,

I have built a platform which only supports login by WebAuthn (passkey).

I would like to support a passkey-recovery if the user lost access to their passkey they have used to register with. I've been reading (a, b)about this scenario and it can get quite complex regarding best practice / security.

As for nuxt-auth-utils, I added a recovery flow with recovery token on the users table. I would think once verified, I need to update the credentials table with a new passkey. When I call register() with the new passkey I get "duplicate key value violates unique constraint "users_email_unique", which makes sense. So I might have do write handle some steps "manually" based on

interface RegistrationInitResponse {
.

Before I do so, I was wondering if there are any thought / recommendations here around that topic?

Copy link
Owner

atinux commented Jan 6, 2025

I did not go that far about the passkeys so I am more than open to hear how you will implement it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants