Allow Passkeys to be used as a second authentication factor (2FA)

Aperta
#5,945 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nextjs, typescript

Direzione di ricerca

Start with the existing 2FA setup modal and the passkey registration and login flows; the issue does not name their files. Trace how TOTP enrollment and verification are connected, then determine how a registered passkey could be used for a second factor. Done means users can select TOTP or a passkey for 2FA, with the suggested authenticator issuer choices also addressed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
What problem will this feature address?

Currently, Dokploy supports passkeys as an alternative login method to password authentication. However, users cannot use an already registered passkey as a second authentication factor.

When enabling 2FA, the only available option is an authenticator app (TOTP).

This means users have to choose between password-based authentication and passkey authentication, rather than combining both for stronger account security.

Ideally, users should be able to log in using their password and then confirm their identity using a registered passkey, just like they would with an authenticator app.

Describe the solution you'd like

would like to see passkeys added as an additional 2FA method.

In the existing 2FA setup modal, users should be able to choose between:

  • Authenticator App (TOTP) – Use an authenticator app to generate verification codes.
  • Passkey – Use an already registered passkey (e.g. Face ID, Touch ID, Windows Hello or a hardware security key) as the second authentication factor.

This would allow users to combine password authentication with passkey-based 2FA.

Additionally, I would suggest improving the authenticator app setup UI:

  • Replace the current free-text issuer field with a dropdown or predefined options.
  • Include commonly used authenticator apps such as Google Authenticator, Microsoft Authenticator, Authy and 1Password.
  • Allow users to specify a custom issuer if needed.

The overall goal is to make 2FA setup more user-friendly while offering modern, passwordless-compatible security options.

Describe alternatives you've considered
  • Continue using an authenticator app (TOTP) as the only available 2FA method.
  • Use passkeys exclusively for authentication instead of combining them with password authentication.

Neither option provides the flexibility of combining a traditional password with a passkey as a second factor.

Additional context

The current 2FA setup modal already provides a good starting point for this feature.

I believe adding a method selection step would be a natural extension of the existing implementation.

Passkeys are increasingly supported across browsers, operating systems and devices, making them a convenient and phishing-resistant alternative to traditional TOTP codes.

Ideally, users should be able to register a passkey once and then choose to use it either for passwordless login or as a second factor for password-based authentication.

See screenshot below for the new modal (AI generated so its not perfect but it gives a better picture)

Image
Will you send a PR to implement it?

No

Lingua principale
TypeScript
Stelle
38.8k
Fork
3.2k
Merge medio
1g 10h
PR unite (30g)
110

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.