Skip to content

Commit e28949f

Browse files
feat(react, i18n): say that the user is being signed in after a registration that created a session
Adds the `signup.success.signing.in` text to all bundles and uses it in BaseSignUp when the completed flow carries `signedIn: true`, so the moment before the navigation reads "Your account has been created. Signing you in…" instead of a bare completion message. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent e77e990 commit e28949f

13 files changed

Lines changed: 47 additions & 1 deletion

File tree

‎.changeset/signup-complete-without-session.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
'@asgardeo/i18n': patch
23
'@asgardeo/react': patch
34
'@asgardeo/nextjs': patch
45
---
@@ -7,3 +8,4 @@ Show a success message and a sign-in button when a registration completes withou
78

89
- `BaseSignUp` accepts a `signInUrl` prop. When the flow completes and the prop is set, the card keeps showing the "account created" message and renders a Sign In button that takes the user to that URL.
910
- The Next.js `<SignUp />` passes the configured `signInUrl` automatically, and the provider no longer navigates to `afterSignUpUrl` when no session was created (for example after a social sign-up, or a multi-step registration). Previously the user was sent to a protected page and bounced straight to the sign-in form without ever seeing that the account had been created. A per-component `afterSignUpUrl` prop is still honoured.
11+
- When the host does sign the user in (the Next.js auto sign-in), the message reads "Your account has been created. Signing you in…" (new i18n key `signup.success.signing.in`) instead of leaving the user wondering what happens next.

‎packages/i18n/src/models/i18n.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface I18nTranslations {
7878
'signup.heading': string;
7979
'signup.subheading': string;
8080
'signup.success': string;
81+
'signup.success.signing.in': string;
8182

8283
/* Email OTP */
8384
'email.otp.heading': string;

‎packages/i18n/src/translations/en-US.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const translations: I18nTranslations = {
8181
'signup.heading': 'Sign Up',
8282
'signup.subheading': 'Create a new account to get started.',
8383
'signup.success': 'Your account has been created successfully.',
84+
'signup.success.signing.in': 'Your account has been created. Signing you in…',
8485

8586
/* Email OTP */
8687
'email.otp.heading': 'OTP Verification',

‎packages/i18n/src/translations/fr-FR.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': "S'inscrire",
8080
'signup.subheading': 'Créez un nouveau compte pour commencer.',
8181
'signup.success': 'Votre compte a été créé avec succès.',
82+
'signup.success.signing.in': 'Votre compte a été créé. Connexion en cours…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'Vérification OTP',

‎packages/i18n/src/translations/hi-IN.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'साइन अप',
8080
'signup.subheading': 'शुरू करने के लिए नया खाता बनाएं।',
8181
'signup.success': 'आपका खाता सफलतापूर्वक बना दिया गया है।',
82+
'signup.success.signing.in': 'आपका खाता बना दिया गया है। आपको साइन इन किया जा रहा है…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'OTP सत्यापन',

‎packages/i18n/src/translations/ja-JP.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'サインアップ',
8080
'signup.subheading': 'はじめるには新しいアカウントを作成してください。',
8181
'signup.success': 'アカウントが正常に作成されました。',
82+
'signup.success.signing.in': 'アカウントが作成されました。サインインしています…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'OTP認証',

‎packages/i18n/src/translations/pt-BR.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'Cadastra-se',
8080
'signup.subheading': 'Crie uma nova conta para iniciar.',
8181
'signup.success': 'Sua conta foi criada com sucesso.',
82+
'signup.success.signing.in': 'Sua conta foi criada. Entrando…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'Verificação OTP',

‎packages/i18n/src/translations/pt-PT.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'Registar-se',
8080
'signup.subheading': 'Crie uma nova conta para começar.',
8181
'signup.success': 'A sua conta foi criada com sucesso.',
82+
'signup.success.signing.in': 'A sua conta foi criada. A iniciar sessão…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'Verificação OTP',

‎packages/i18n/src/translations/si-LK.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'ලියාපදිංචි වන්න',
8080
'signup.subheading': 'ආරම්භ කිරීමට නව ගිණුමක් සාදන්න.',
8181
'signup.success': 'ඔබගේ ගිණුම සාර්ථකව සාදන ලදී.',
82+
'signup.success.signing.in': 'ඔබගේ ගිණුම සාදන ලදී. ඔබව පුරනය කරමින්…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'OTP සත්‍යාපනය',

‎packages/i18n/src/translations/ta-IN.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const translations: I18nTranslations = {
7979
'signup.heading': 'பதிவு செய்',
8080
'signup.subheading': 'தொடங்க புதிய கணக்கை உருவாக்கவும்.',
8181
'signup.success': 'உங்கள் கணக்கு வெற்றிகரமாக உருவாக்கப்பட்டது.',
82+
'signup.success.signing.in': 'உங்கள் கணக்கு உருவாக்கப்பட்டது. உள்நுழைக்கப்படுகிறது…',
8283

8384
/* Email OTP */
8485
'email.otp.heading': 'OTP சரிபார்ப்பு',

0 commit comments

Comments
 (0)