@cedros/login-react 0.0.18 → 0.0.19
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/{GoogleLoginButton-CwKEUISj.js → GoogleLoginButton-B6qnNMZp.js} +46 -44
- package/dist/GoogleLoginButton-B6qnNMZp.js.map +1 -0
- package/dist/GoogleLoginButton-D7CoMXLq.cjs +1 -0
- package/dist/GoogleLoginButton-D7CoMXLq.cjs.map +1 -0
- package/dist/email-only.d.ts +1 -1
- package/dist/google-only.cjs +1 -1
- package/dist/google-only.d.ts +5 -1
- package/dist/google-only.js +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1241 -1238
- package/dist/index.js.map +1 -1
- package/dist/solana-only.d.ts +1 -1
- package/package.json +1 -1
- package/dist/GoogleLoginButton-CwKEUISj.js.map +0 -1
- package/dist/GoogleLoginButton-oM5fMYPB.cjs +0 -1
- package/dist/GoogleLoginButton-oM5fMYPB.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -573,7 +573,7 @@ export declare interface AuthError {
|
|
|
573
573
|
/**
|
|
574
574
|
* Standard error codes
|
|
575
575
|
*/
|
|
576
|
-
export declare type AuthErrorCode = 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'EMAIL_EXISTS' | 'WALLET_EXISTS' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_SIGNATURE' | 'INVALID_PUBLIC_KEY' | 'CHALLENGE_EXPIRED' | 'VALIDATION_ERROR' | 'RATE_LIMITED' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHORIZED' | 'STEP_UP_REQUIRED' | 'TOTP_REQUIRED' | 'INVALID_TOTP_CODE' | 'SERVICE_UNAVAILABLE' | 'SERVER_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
|
|
576
|
+
export declare type AuthErrorCode = 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'EMAIL_EXISTS' | 'ACCOUNT_LINK_REQUIRED' | 'WALLET_EXISTS' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_SIGNATURE' | 'INVALID_PUBLIC_KEY' | 'CHALLENGE_EXPIRED' | 'VALIDATION_ERROR' | 'RATE_LIMITED' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHORIZED' | 'STEP_UP_REQUIRED' | 'TOTP_REQUIRED' | 'INVALID_TOTP_CODE' | 'SERVICE_UNAVAILABLE' | 'SERVER_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* Authentication method used for login/registration
|
|
@@ -3744,6 +3744,10 @@ export declare interface UseAppleAuthReturn {
|
|
|
3744
3744
|
isInitialized: boolean;
|
|
3745
3745
|
error: AuthError | null;
|
|
3746
3746
|
clearError: () => void;
|
|
3747
|
+
/** ID token saved when ACCOUNT_LINK_REQUIRED is returned. Pass to POST /auth/link-oauth with the user's password. */
|
|
3748
|
+
pendingLinkIdToken: string | null;
|
|
3749
|
+
/** Clear the pending link state */
|
|
3750
|
+
clearPendingLink: () => void;
|
|
3747
3751
|
}
|
|
3748
3752
|
|
|
3749
3753
|
/**
|
|
@@ -4010,6 +4014,10 @@ export declare interface UseGoogleAuthReturn {
|
|
|
4010
4014
|
isInitialized: boolean;
|
|
4011
4015
|
error: AuthError | null;
|
|
4012
4016
|
clearError: () => void;
|
|
4017
|
+
/** ID token saved when ACCOUNT_LINK_REQUIRED is returned. Pass to POST /auth/link-oauth with the user's password. */
|
|
4018
|
+
pendingLinkIdToken: string | null;
|
|
4019
|
+
/** Clear the pending link state */
|
|
4020
|
+
clearPendingLink: () => void;
|
|
4013
4021
|
}
|
|
4014
4022
|
|
|
4015
4023
|
/**
|