mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 14:51:45 +00:00
feat: Passkey (WebAuthn) login (#1111)
* feat(auth): passkey (WebAuthn) login — server endpoints, schema + admin toggle Add @simplewebauthn/server registration and primary (discoverable) login ceremonies under /api/auth/passkey, a webauthn_credentials + single-use webauthn_challenges schema (migration), the instance-wide passkey_login toggle (default off) enforced before auth by a guard, and require_mfa satisfaction via a verified passkey. RP ID/origin come only from server config (webauthn_rp_id/origins -> APP_URL), never request headers. * feat(auth): passkey enrolment, login button + admin settings UI PasskeysSection in account settings (add/rename/remove with a current-password step-up), a 'Sign in with a passkey' button on the login page, the admin enable + RP-ID/origins controls, and a per-user admin reset action. * i18n(auth): passkey strings across all locales Add login/settings/admin passkey keys to en and all 19 translated locales.
This commit is contained in:
@@ -91,5 +91,8 @@ const login: TranslationStrings = {
|
||||
'リンクが無効または破損しています。新しいリンクをリクエストしてください。',
|
||||
'login.resetPasswordFailed':
|
||||
'リセットに失敗しました。リンクの有効期限が切れている可能性があります。',
|
||||
'login.passkey.signIn': 'パスキーでサインイン',
|
||||
'login.passkey.failed':
|
||||
'パスキーでのサインインに失敗しました。もう一度お試しください。',
|
||||
};
|
||||
export default login;
|
||||
|
||||
Reference in New Issue
Block a user