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

Abierto
#5,945 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
nextjs, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
38.8k
Forks
3.2k
Merge medio
1 d 10 h
PR fusionados (30 d)
110

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Dokploy/dokploy

Todos los issues de Dokploy/dokploy

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.