Add OTP sign-in option + Account Linking (#276)

* feat(accounts): allow linking email password
* feat(auth): add OTP sign-in
* refactor(accounts): remove 'sonner' dependency and update toast imports
* feat(supabase): enable analytics and configure database seeding
* feat(auth): update email templates and add OTP template
* feat(auth): add last sign in method hints
* feat(config): add devIndicators position to bottom-right
* feat(auth): implement comprehensive last authentication method tracking tests
This commit is contained in:
Giancarlo Buomprisco
2025-06-13 16:47:35 +07:00
committed by GitHub
parent 856e9612c4
commit 9033155fcd
87 changed files with 2580 additions and 1172 deletions

View File

@@ -42,7 +42,7 @@
"emailNotMatching": "Emails do not match. Make sure you're using the correct email",
"passwordNotChanged": "Your password has not changed",
"emailsNotMatching": "Emails do not match. Make sure you're using the correct email",
"cannotUpdatePassword": "You cannot update your password because your account is not linked to any.",
"cannotUpdatePassword": "You cannot update your password because your account is not linked to an email.",
"setupMfaButtonLabel": "Setup a new Factor",
"multiFactorSetupErrorHeading": "Setup Failed",
"multiFactorSetupErrorDescription": "Sorry, there was an error while setting up your factor. Please try again.",
@@ -111,5 +111,29 @@
"languageDescription": "Choose your preferred language",
"noTeamsYet": "You don't have any teams yet.",
"createTeam": "Create a team to get started.",
"createTeamButtonLabel": "Create a Team"
"createTeamButtonLabel": "Create a Team",
"linkedAccounts": "Linked Accounts",
"linkedAccountsDescription": "Connect other authentication providers",
"unlinkAccountButton": "Unlink {{provider}}",
"unlinkAccountSuccess": "Account unlinked",
"unlinkAccountError": "Unlinking failed",
"linkAccountSuccess": "Account linked",
"linkAccountError": "Linking failed",
"linkEmailPasswordButton": "Add Email & Password",
"linkEmailPasswordSuccess": "Email and password linked",
"linkEmailPasswordError": "Failed to link email and password",
"linkingAccount": "Linking account...",
"accountLinked": "Account linked",
"unlinkAccount": "Unlink Account",
"failedToLinkAccount": "Failed to link account",
"availableAccounts": "Available Accounts",
"availableAccountsDescription": "Connect other authentication providers to your account",
"alreadyLinkedAccountsDescription": "You have already linked these accounts",
"confirmUnlinkAccount": "You are unlinking this provider.",
"unlinkAccountConfirmation": "Are you sure you want to unlink this provider from your account? This action cannot be undone.",
"unlinkingAccount": "Unlinking account...",
"accountUnlinked": "Account successfully unlinked",
"linkEmailPassword": "Email & Password",
"linkEmailPasswordDescription": "Add an email and password to your account for additional sign-in options",
"noAccountsAvailable": "No additional accounts available to link"
}

View File

@@ -70,18 +70,27 @@
"privacyPolicy": "Privacy Policy",
"orContinueWith": "Or continue with",
"redirecting": "You're in! Please wait...",
"lastUsedMethodPrefix": "You last signed in with",
"methodPassword": "email and password",
"methodOtp": "OTP code",
"methodMagicLink": "email link",
"methodOauth": "social sign-in",
"methodOauthWithProvider": "<provider>{{provider}}</provider>",
"existingAccountHint": "You previously signed in with <method>{{method}}</method>. <signInLink>Already have an account?</signInLink>",
"errors": {
"Invalid login credentials": "The credentials entered are invalid",
"User already registered": "This credential is already in use. Please try with another one.",
"Email not confirmed": "Please confirm your email address before signing in",
"default": "We have encountered an error. Please ensure you have a working internet connection and try again",
"generic": "Sorry, we weren't able to authenticate you. Please try again.",
"link": "Sorry, we encountered an error while sending your link. Please try again.",
"linkTitle": "Sign in failed",
"linkDescription": "Sorry, we weren't able to sign you in. Please try again.",
"codeVerifierMismatch": "It looks like you're trying to sign in using a different browser than the one you used to request the sign in link. Please try again using the same browser.",
"minPasswordLength": "Password must be at least 8 characters long",
"passwordsDoNotMatch": "The passwords do not match",
"minPasswordNumbers": "Password must contain at least one number",
"minPasswordSpecialChars": "Password must contain at least one special character",
"Signups not allowed for otp": "OTP is disabled. Please enable it in your account settings.",
"uppercasePassword": "Password must contain at least one uppercase letter",
"insufficient_aal": "Please sign-in with your current multi-factor authentication to perform this action",
"otp_expired": "The email link has expired. Please try again.",