@authowl/react 0.21.2 → 0.23.0
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/{TeamsSection-ZQDNMWV3.js → TeamsSection-NV64O5I4.js} +1 -1
- package/dist/captcha-loader-VNULARCZ.js +68 -0
- package/dist/captcha-providers-STYFL25P.js +71 -0
- package/dist/{chunk-PUJV7S6G.js → chunk-E5ZOQHXY.js} +97 -51
- package/dist/index.cjs +730 -498
- package/dist/index.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +253 -227
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AuthConfig, Locale, AuthOwlClient, PublicConfig, ConsentStatus, OrganizationInvitationDetails, OrganizationDetails, OrganizationMembership, HasParams, AuthUser, AuthClientError, InvitationRecipientHint, SessionState, Organization, AuthOwlErrorCode } from '@authowl/core';
|
|
2
|
+
import { AuthConfig, Locale, AuthOwlClient, PublicConfig, ConsentStatus, OrganizationInvitationDetails, OrganizationDetails, OrganizationMembership, HasParams, AuthUser, AuthClientError, InvitationRecipientHint, SessionState, Organization, AuthOwlErrorCode, LastUsedSignInMethod } from '@authowl/core';
|
|
3
3
|
export { AuthOwlError, AuthPasskey, ConsentStatus, HasParams, InvalidKeyError, Organization, OrganizationDetails, OrganizationInvitation, OrganizationMember, OrganizationMemberWithUser, OrganizationMembership, OrganizationRoleSummary, OrganizationTeam, OrganizationTeamMember, OrganizationUserInvitation, PublicConfig, RateLimitedError, createMembershipHas, membershipHas, membershipHasPermission, membershipHasTeam } from '@authowl/core';
|
|
4
4
|
|
|
5
5
|
type Appearance = {
|
|
@@ -901,7 +901,7 @@ type GoogleOneTapError = {
|
|
|
901
901
|
type GoogleOneTapProps = {
|
|
902
902
|
/** Disable prompting without unmounting the component. */
|
|
903
903
|
disabled?: boolean;
|
|
904
|
-
/**
|
|
904
|
+
/** Ask Google to include this nonce and verify the returned token carries the same value. */
|
|
905
905
|
nonce?: string;
|
|
906
906
|
/** Let eligible returning Google users sign in automatically. Defaults to false. */
|
|
907
907
|
autoSelect?: boolean;
|
|
@@ -924,4 +924,24 @@ type GoogleOneTapProps = {
|
|
|
924
924
|
/** Invisible, server-configured Google One Tap conversion helper. */
|
|
925
925
|
declare function GoogleOneTap({ disabled, nonce, autoSelect, cancelOnTapOutside, context, itpSupport, loginHint, hostedDomain, stateCookieDomain, scriptNonce, onSignedIn, onSkipped, onDismissed, onError, }: GoogleOneTapProps): null;
|
|
926
926
|
|
|
927
|
-
|
|
927
|
+
/**
|
|
928
|
+
* Which sign-in method last worked in this browser, for this project.
|
|
929
|
+
*
|
|
930
|
+
* Two kinds of method need different treatment, and conflating them is the bug
|
|
931
|
+
* this shape exists to avoid:
|
|
932
|
+
*
|
|
933
|
+
* completes in page password, email-OTP verification, passkey - observable
|
|
934
|
+
* success, so it is recorded when it happens.
|
|
935
|
+
*
|
|
936
|
+
* leaves the page social, SSO, magic link - the page that would observe
|
|
937
|
+
* success is one the browser navigates away from. The
|
|
938
|
+
* attempt is PARKED and promoted only when a session
|
|
939
|
+
* actually appears, so bouncing off a consent screen does
|
|
940
|
+
* not teach the form that the provider worked.
|
|
941
|
+
*
|
|
942
|
+
* Everything is per project and per browser, and never keyed by an identifier -
|
|
943
|
+
* see the core module for why that line matters.
|
|
944
|
+
*/
|
|
945
|
+
declare function useLastUsedSignInMethod(): LastUsedSignInMethod | null;
|
|
946
|
+
|
|
947
|
+
export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlBranding, type AuthOwlBrandingProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, InvitationPrompt, type InvitationPromptStatus, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationInvitationResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useInvitationRecipientHint, useLastUsedSignInMethod, useLocale, useMFA, useOrganization, useOrganizationInvitation, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AuthConfig, Locale, AuthOwlClient, PublicConfig, ConsentStatus, OrganizationInvitationDetails, OrganizationDetails, OrganizationMembership, HasParams, AuthUser, AuthClientError, InvitationRecipientHint, SessionState, Organization, AuthOwlErrorCode } from '@authowl/core';
|
|
2
|
+
import { AuthConfig, Locale, AuthOwlClient, PublicConfig, ConsentStatus, OrganizationInvitationDetails, OrganizationDetails, OrganizationMembership, HasParams, AuthUser, AuthClientError, InvitationRecipientHint, SessionState, Organization, AuthOwlErrorCode, LastUsedSignInMethod } from '@authowl/core';
|
|
3
3
|
export { AuthOwlError, AuthPasskey, ConsentStatus, HasParams, InvalidKeyError, Organization, OrganizationDetails, OrganizationInvitation, OrganizationMember, OrganizationMemberWithUser, OrganizationMembership, OrganizationRoleSummary, OrganizationTeam, OrganizationTeamMember, OrganizationUserInvitation, PublicConfig, RateLimitedError, createMembershipHas, membershipHas, membershipHasPermission, membershipHasTeam } from '@authowl/core';
|
|
4
4
|
|
|
5
5
|
type Appearance = {
|
|
@@ -901,7 +901,7 @@ type GoogleOneTapError = {
|
|
|
901
901
|
type GoogleOneTapProps = {
|
|
902
902
|
/** Disable prompting without unmounting the component. */
|
|
903
903
|
disabled?: boolean;
|
|
904
|
-
/**
|
|
904
|
+
/** Ask Google to include this nonce and verify the returned token carries the same value. */
|
|
905
905
|
nonce?: string;
|
|
906
906
|
/** Let eligible returning Google users sign in automatically. Defaults to false. */
|
|
907
907
|
autoSelect?: boolean;
|
|
@@ -924,4 +924,24 @@ type GoogleOneTapProps = {
|
|
|
924
924
|
/** Invisible, server-configured Google One Tap conversion helper. */
|
|
925
925
|
declare function GoogleOneTap({ disabled, nonce, autoSelect, cancelOnTapOutside, context, itpSupport, loginHint, hostedDomain, stateCookieDomain, scriptNonce, onSignedIn, onSkipped, onDismissed, onError, }: GoogleOneTapProps): null;
|
|
926
926
|
|
|
927
|
-
|
|
927
|
+
/**
|
|
928
|
+
* Which sign-in method last worked in this browser, for this project.
|
|
929
|
+
*
|
|
930
|
+
* Two kinds of method need different treatment, and conflating them is the bug
|
|
931
|
+
* this shape exists to avoid:
|
|
932
|
+
*
|
|
933
|
+
* completes in page password, email-OTP verification, passkey - observable
|
|
934
|
+
* success, so it is recorded when it happens.
|
|
935
|
+
*
|
|
936
|
+
* leaves the page social, SSO, magic link - the page that would observe
|
|
937
|
+
* success is one the browser navigates away from. The
|
|
938
|
+
* attempt is PARKED and promoted only when a session
|
|
939
|
+
* actually appears, so bouncing off a consent screen does
|
|
940
|
+
* not teach the form that the provider worked.
|
|
941
|
+
*
|
|
942
|
+
* Everything is per project and per browser, and never keyed by an identifier -
|
|
943
|
+
* see the core module for why that line matters.
|
|
944
|
+
*/
|
|
945
|
+
declare function useLastUsedSignInMethod(): LastUsedSignInMethod | null;
|
|
946
|
+
|
|
947
|
+
export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlBranding, type AuthOwlBrandingProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, InvitationPrompt, type InvitationPromptStatus, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationInvitationResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useInvitationRecipientHint, useLastUsedSignInMethod, useLocale, useMFA, useOrganization, useOrganizationInvitation, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };
|