@chuzi/shared 1.3.19 → 1.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -276,13 +276,22 @@ var REALMS = {
276
276
  auth_password_signing_in: "Signing in...",
277
277
  auth_signin_tab: "Sign in",
278
278
  auth_signup_tab: "Sign up",
279
- auth_signup_subtitle: "Create your account with a magic link.",
280
- auth_signin_subtitle: "Jump back in with your magic link.",
281
- auth_sign_up_button: "Send Sign-Up Link",
279
+ auth_signup_subtitle: "Create your account with secure sign-in.",
280
+ auth_signin_subtitle: "Sign in with your account provider.",
281
+ auth_sign_up_button: "Continue with Google",
282
282
  auth_username_placeholder: "Username",
283
- auth_sign_in_button: "Send Sign-In Link",
284
- auth_signing_in: "Sending...",
283
+ auth_sign_in_button: "Continue with Google",
284
+ auth_signing_in: "Signing in...",
285
+ auth_provider_apple: "Continue with Apple",
286
+ auth_provider_microsoft: "Continue with Microsoft",
287
+ auth_oidc_redirecting: "Redirecting to secure sign-in...",
288
+ auth_oidc_failed: "Could not start sign-in.",
289
+ auth_oidc_callback_processing: "Completing sign-in...",
290
+ auth_oidc_verified: "Signed in. Redirecting...",
291
+ auth_oidc_callback_failed: "Could not complete sign-in.",
292
+ auth_oidc_token_missing: "Sign-in token was missing.",
285
293
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
294
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
286
295
  auth_magic_link_verifying: "Verifying magic link...",
287
296
  auth_magic_link_verified: "Signed in. Redirecting...",
288
297
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -528,13 +537,22 @@ var REALMS = {
528
537
  auth_password_signing_in: "Signing in...",
529
538
  auth_signin_tab: "Sign in",
530
539
  auth_signup_tab: "Sign up",
531
- auth_signup_subtitle: "Create your account with a magic link.",
532
- auth_signin_subtitle: "Jump back in with your magic link.",
533
- auth_sign_up_button: "Send Sign-Up Link",
540
+ auth_signup_subtitle: "Create your account with secure sign-in.",
541
+ auth_signin_subtitle: "Sign in with your account provider.",
542
+ auth_sign_up_button: "Continue with Google",
534
543
  auth_username_placeholder: "Username",
535
- auth_sign_in_button: "Send Sign-In Link",
536
- auth_signing_in: "Sending...",
544
+ auth_sign_in_button: "Continue with Google",
545
+ auth_signing_in: "Signing in...",
546
+ auth_provider_apple: "Continue with Apple",
547
+ auth_provider_microsoft: "Continue with Microsoft",
548
+ auth_oidc_redirecting: "Redirecting to secure sign-in...",
549
+ auth_oidc_failed: "Could not start sign-in.",
550
+ auth_oidc_callback_processing: "Completing sign-in...",
551
+ auth_oidc_verified: "Signed in. Redirecting...",
552
+ auth_oidc_callback_failed: "Could not complete sign-in.",
553
+ auth_oidc_token_missing: "Sign-in token was missing.",
537
554
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
555
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
538
556
  auth_magic_link_verifying: "Verifying magic link...",
539
557
  auth_magic_link_verified: "Signed in. Redirecting...",
540
558
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -778,13 +796,22 @@ var FALLBACK_LEXICON = {
778
796
  auth_password_signing_in: "Signing in...",
779
797
  auth_signin_tab: "Sign in",
780
798
  auth_signup_tab: "Sign up",
781
- auth_signup_subtitle: "Create your account with a magic link.",
782
- auth_signin_subtitle: "Jump back in with your magic link.",
783
- auth_sign_up_button: "Send Sign-Up Link",
799
+ auth_signup_subtitle: "Create your account with secure sign-in.",
800
+ auth_signin_subtitle: "Sign in with your account provider.",
801
+ auth_sign_up_button: "Continue with Google",
784
802
  auth_username_placeholder: "Username",
785
- auth_sign_in_button: "Send Sign-In Link",
786
- auth_signing_in: "Sending...",
803
+ auth_sign_in_button: "Continue with Google",
804
+ auth_signing_in: "Signing in...",
805
+ auth_provider_apple: "Continue with Apple",
806
+ auth_provider_microsoft: "Continue with Microsoft",
807
+ auth_oidc_redirecting: "Redirecting to secure sign-in...",
808
+ auth_oidc_failed: "Could not start sign-in.",
809
+ auth_oidc_callback_processing: "Completing sign-in...",
810
+ auth_oidc_verified: "Signed in. Redirecting...",
811
+ auth_oidc_callback_failed: "Could not complete sign-in.",
812
+ auth_oidc_token_missing: "Sign-in token was missing.",
787
813
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
814
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
788
815
  auth_magic_link_verifying: "Verifying magic link...",
789
816
  auth_magic_link_verified: "Signed in. Redirecting...",
790
817
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -1019,6 +1046,7 @@ function createChuziClient(config) {
1019
1046
  return {
1020
1047
  auth: {
1021
1048
  login: (req) => request("POST", "/api/v1/auth/login", { body: req }),
1049
+ exchangeOidcCode: (req) => request("POST", "/api/v1/auth/oidc/exchange", { body: req }),
1022
1050
  requestMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/request", { body: req }),
1023
1051
  verifyMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/verify", { body: req }),
1024
1052
  usernameAvailability: (username, opts) => request("GET", "/api/v1/auth/username-availability", {