@chuzi/shared 1.3.20 → 1.3.22

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,20 @@ 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: "Change Your Mind.",
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_oidc_redirecting: "Redirecting to secure sign-in...",
286
+ auth_oidc_failed: "Could not start sign-in.",
287
+ auth_oidc_callback_processing: "Completing sign-in...",
288
+ auth_oidc_verified: "Signed in. Redirecting...",
289
+ auth_oidc_callback_failed: "Could not complete sign-in.",
290
+ auth_oidc_token_missing: "Sign-in token was missing.",
285
291
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
292
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
286
293
  auth_magic_link_verifying: "Verifying magic link...",
287
294
  auth_magic_link_verified: "Signed in. Redirecting...",
288
295
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -528,13 +535,20 @@ var REALMS = {
528
535
  auth_password_signing_in: "Signing in...",
529
536
  auth_signin_tab: "Sign in",
530
537
  auth_signup_tab: "Sign up",
531
- auth_signup_subtitle: "Create your account with a magic link.",
532
- auth_signin_subtitle: "Change Your Mind.",
533
- auth_sign_up_button: "Send Sign-Up Link",
538
+ auth_signup_subtitle: "Create your account with secure sign-in.",
539
+ auth_signin_subtitle: "Sign in with your account provider.",
540
+ auth_sign_up_button: "Continue with Google",
534
541
  auth_username_placeholder: "Username",
535
- auth_sign_in_button: "Send Sign-In Link",
536
- auth_signing_in: "Sending...",
542
+ auth_sign_in_button: "Continue with Google",
543
+ auth_signing_in: "Signing in...",
544
+ auth_oidc_redirecting: "Redirecting to secure sign-in...",
545
+ auth_oidc_failed: "Could not start sign-in.",
546
+ auth_oidc_callback_processing: "Completing sign-in...",
547
+ auth_oidc_verified: "Signed in. Redirecting...",
548
+ auth_oidc_callback_failed: "Could not complete sign-in.",
549
+ auth_oidc_token_missing: "Sign-in token was missing.",
537
550
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
551
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
538
552
  auth_magic_link_verifying: "Verifying magic link...",
539
553
  auth_magic_link_verified: "Signed in. Redirecting...",
540
554
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -778,13 +792,20 @@ var FALLBACK_LEXICON = {
778
792
  auth_password_signing_in: "Signing in...",
779
793
  auth_signin_tab: "Sign in",
780
794
  auth_signup_tab: "Sign up",
781
- auth_signup_subtitle: "Create your account with a magic link.",
782
- auth_signin_subtitle: "Change Your Mind.",
783
- auth_sign_up_button: "Send Sign-Up Link",
795
+ auth_signup_subtitle: "Create your account with secure sign-in.",
796
+ auth_signin_subtitle: "Sign in with your account provider.",
797
+ auth_sign_up_button: "Continue with Google",
784
798
  auth_username_placeholder: "Username",
785
- auth_sign_in_button: "Send Sign-In Link",
786
- auth_signing_in: "Sending...",
799
+ auth_sign_in_button: "Continue with Google",
800
+ auth_signing_in: "Signing in...",
801
+ auth_oidc_redirecting: "Redirecting to secure sign-in...",
802
+ auth_oidc_failed: "Could not start sign-in.",
803
+ auth_oidc_callback_processing: "Completing sign-in...",
804
+ auth_oidc_verified: "Signed in. Redirecting...",
805
+ auth_oidc_callback_failed: "Could not complete sign-in.",
806
+ auth_oidc_token_missing: "Sign-in token was missing.",
787
807
  auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
808
+ auth_magic_link_sent_signup: "Check your email for your sign-up link.",
788
809
  auth_magic_link_verifying: "Verifying magic link...",
789
810
  auth_magic_link_verified: "Signed in. Redirecting...",
790
811
  auth_magic_link_failed: "This magic link is invalid or expired.",
@@ -1019,6 +1040,7 @@ function createChuziClient(config) {
1019
1040
  return {
1020
1041
  auth: {
1021
1042
  login: (req) => request("POST", "/api/v1/auth/login", { body: req }),
1043
+ exchangeOidcCode: (req) => request("POST", "/api/v1/auth/oidc/exchange", { body: req }),
1022
1044
  requestMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/request", { body: req }),
1023
1045
  verifyMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/verify", { body: req }),
1024
1046
  usernameAvailability: (username, opts) => request("GET", "/api/v1/auth/username-availability", {