@react-native-firebase/auth 24.1.1 → 25.0.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/CHANGELOG.md +10 -0
- package/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java +16 -4
- package/dist/module/ActionCodeURL.js +140 -0
- package/dist/module/ActionCodeURL.js.map +1 -0
- package/{lib → dist/module}/ConfirmationResult.js +4 -5
- package/dist/module/ConfirmationResult.js.map +1 -0
- package/{lib → dist/module}/MultiFactorResolver.js +14 -5
- package/dist/module/MultiFactorResolver.js.map +1 -0
- package/{lib → dist/module}/PhoneAuthListener.js +52 -75
- package/dist/module/PhoneAuthListener.js.map +1 -0
- package/dist/module/PhoneAuthState.js +25 -0
- package/dist/module/PhoneAuthState.js.map +1 -0
- package/dist/module/PhoneMultiFactorGenerator.js +39 -0
- package/dist/module/PhoneMultiFactorGenerator.js.map +1 -0
- package/{lib → dist/module}/Settings.js +3 -7
- package/dist/module/Settings.js.map +1 -0
- package/{lib → dist/module}/TotpMultiFactorGenerator.js +20 -15
- package/dist/module/TotpMultiFactorGenerator.js.map +1 -0
- package/{lib → dist/module}/TotpSecret.js +7 -5
- package/dist/module/TotpSecret.js.map +1 -0
- package/dist/module/User.js +245 -0
- package/dist/module/User.js.map +1 -0
- package/dist/module/constants.js +54 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/credentials/AuthCredential.js +51 -0
- package/dist/module/credentials/AuthCredential.js.map +1 -0
- package/dist/module/credentials/EmailAuthCredential.js +51 -0
- package/dist/module/credentials/EmailAuthCredential.js.map +1 -0
- package/dist/module/credentials/OAuthCredential.js +84 -0
- package/dist/module/credentials/OAuthCredential.js.map +1 -0
- package/dist/module/credentials/PhoneAuthCredential.js +50 -0
- package/dist/module/credentials/PhoneAuthCredential.js.map +1 -0
- package/{lib/providers/GoogleAuthProvider.js → dist/module/credentials/index.js} +7 -19
- package/dist/module/credentials/index.js.map +1 -0
- package/{lib → dist/module}/getMultiFactorResolver.js +5 -8
- package/dist/module/getMultiFactorResolver.js.map +1 -0
- package/{lib/providers/FacebookAuthProvider.js → dist/module/index.js} +11 -18
- package/dist/module/index.js.map +1 -0
- package/dist/module/modular.js +779 -0
- package/dist/module/modular.js.map +1 -0
- package/{lib → dist/module}/multiFactor.js +16 -14
- package/dist/module/multiFactor.js.map +1 -0
- package/dist/module/namespaced.js +522 -0
- package/dist/module/namespaced.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/password-policy/PasswordPolicyImpl.js +103 -0
- package/dist/module/password-policy/PasswordPolicyImpl.js.map +1 -0
- package/{lib → dist/module}/password-policy/PasswordPolicyMixin.js +14 -16
- package/dist/module/password-policy/PasswordPolicyMixin.js.map +1 -0
- package/{lib → dist/module}/password-policy/passwordPolicyApi.js +18 -12
- package/dist/module/password-policy/passwordPolicyApi.js.map +1 -0
- package/{lib → dist/module}/providers/AppleAuthProvider.js +14 -7
- package/dist/module/providers/AppleAuthProvider.js.map +1 -0
- package/{lib → dist/module}/providers/EmailAuthProvider.js +10 -25
- package/dist/module/providers/EmailAuthProvider.js.map +1 -0
- package/dist/module/providers/FacebookAuthProvider.js +56 -0
- package/dist/module/providers/FacebookAuthProvider.js.map +1 -0
- package/dist/module/providers/GithubAuthProvider.js +49 -0
- package/dist/module/providers/GithubAuthProvider.js.map +1 -0
- package/dist/module/providers/GoogleAuthProvider.js +57 -0
- package/dist/module/providers/GoogleAuthProvider.js.map +1 -0
- package/dist/module/providers/OAuthProvider.js +116 -0
- package/dist/module/providers/OAuthProvider.js.map +1 -0
- package/{lib → dist/module}/providers/OIDCAuthProvider.js +15 -7
- package/dist/module/providers/OIDCAuthProvider.js.map +1 -0
- package/dist/module/providers/PhoneAuthProvider.js +87 -0
- package/dist/module/providers/PhoneAuthProvider.js.map +1 -0
- package/dist/module/providers/TwitterAuthProvider.js +50 -0
- package/dist/module/providers/TwitterAuthProvider.js.map +1 -0
- package/dist/module/types/auth.js +43 -0
- package/dist/module/types/auth.js.map +1 -0
- package/dist/module/types/internal.js +4 -0
- package/dist/module/types/internal.js.map +1 -0
- package/dist/module/types/namespaced.js +62 -0
- package/dist/module/types/namespaced.js.map +1 -0
- package/dist/module/version.js +5 -0
- package/dist/module/version.js.map +1 -0
- package/dist/module/web/RNFBAuthModule.android.js +5 -0
- package/dist/module/web/RNFBAuthModule.android.js.map +1 -0
- package/dist/module/web/RNFBAuthModule.ios.js +5 -0
- package/dist/module/web/RNFBAuthModule.ios.js.map +1 -0
- package/{lib → dist/module}/web/RNFBAuthModule.js +104 -321
- package/dist/module/web/RNFBAuthModule.js.map +1 -0
- package/dist/typescript/lib/ActionCodeURL.d.ts +41 -0
- package/dist/typescript/lib/ActionCodeURL.d.ts.map +1 -0
- package/dist/typescript/lib/ConfirmationResult.d.ts +10 -0
- package/dist/typescript/lib/ConfirmationResult.d.ts.map +1 -0
- package/dist/typescript/lib/MultiFactorResolver.d.ts +24 -0
- package/dist/typescript/lib/MultiFactorResolver.d.ts.map +1 -0
- package/dist/typescript/lib/PhoneAuthListener.d.ts +34 -0
- package/dist/typescript/lib/PhoneAuthListener.d.ts.map +1 -0
- package/dist/typescript/lib/PhoneAuthState.d.ts +7 -0
- package/dist/typescript/lib/PhoneAuthState.d.ts.map +1 -0
- package/dist/typescript/lib/PhoneMultiFactorGenerator.d.ts +7 -0
- package/dist/typescript/lib/PhoneMultiFactorGenerator.d.ts.map +1 -0
- package/dist/typescript/lib/Settings.d.ts +13 -0
- package/dist/typescript/lib/Settings.d.ts.map +1 -0
- package/dist/typescript/lib/TotpMultiFactorGenerator.d.ts +11 -0
- package/dist/typescript/lib/TotpMultiFactorGenerator.d.ts.map +1 -0
- package/dist/typescript/lib/TotpSecret.d.ts +33 -0
- package/dist/typescript/lib/TotpSecret.d.ts.map +1 -0
- package/dist/typescript/lib/User.d.ts +51 -0
- package/dist/typescript/lib/User.d.ts.map +1 -0
- package/dist/typescript/lib/constants.d.ts +35 -0
- package/dist/typescript/lib/constants.d.ts.map +1 -0
- package/dist/typescript/lib/credentials/AuthCredential.d.ts +12 -0
- package/dist/typescript/lib/credentials/AuthCredential.d.ts.map +1 -0
- package/dist/typescript/lib/credentials/EmailAuthCredential.d.ts +8 -0
- package/dist/typescript/lib/credentials/EmailAuthCredential.d.ts.map +1 -0
- package/dist/typescript/lib/credentials/OAuthCredential.d.ts +22 -0
- package/dist/typescript/lib/credentials/OAuthCredential.d.ts.map +1 -0
- package/dist/typescript/lib/credentials/PhoneAuthCredential.d.ts +8 -0
- package/dist/typescript/lib/credentials/PhoneAuthCredential.d.ts.map +1 -0
- package/dist/typescript/lib/credentials/index.d.ts +5 -0
- package/dist/typescript/lib/credentials/index.d.ts.map +1 -0
- package/dist/typescript/lib/getMultiFactorResolver.d.ts +19 -0
- package/dist/typescript/lib/getMultiFactorResolver.d.ts.map +1 -0
- package/dist/typescript/lib/index.d.ts +8 -0
- package/dist/typescript/lib/index.d.ts.map +1 -0
- package/dist/typescript/lib/modular.d.ts +360 -0
- package/dist/typescript/lib/modular.d.ts.map +1 -0
- package/dist/typescript/lib/multiFactor.d.ts +26 -0
- package/dist/typescript/lib/multiFactor.d.ts.map +1 -0
- package/dist/typescript/lib/namespaced.d.ts +12 -0
- package/dist/typescript/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/lib/password-policy/PasswordPolicyImpl.d.ts +19 -0
- package/dist/typescript/lib/password-policy/PasswordPolicyImpl.d.ts.map +1 -0
- package/dist/typescript/lib/password-policy/PasswordPolicyMixin.d.ts +11 -0
- package/dist/typescript/lib/password-policy/PasswordPolicyMixin.d.ts.map +1 -0
- package/dist/typescript/lib/password-policy/passwordPolicyApi.d.ts +10 -0
- package/dist/typescript/lib/password-policy/passwordPolicyApi.d.ts.map +1 -0
- package/dist/typescript/lib/providers/AppleAuthProvider.d.ts +16 -0
- package/dist/typescript/lib/providers/AppleAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/EmailAuthProvider.d.ts +11 -0
- package/dist/typescript/lib/providers/EmailAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/FacebookAuthProvider.d.ts +19 -0
- package/dist/typescript/lib/providers/FacebookAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/GithubAuthProvider.d.ts +15 -0
- package/dist/typescript/lib/providers/GithubAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/GoogleAuthProvider.d.ts +21 -0
- package/dist/typescript/lib/providers/GoogleAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/OAuthProvider.d.ts +33 -0
- package/dist/typescript/lib/providers/OAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/OIDCAuthProvider.d.ts +16 -0
- package/dist/typescript/lib/providers/OIDCAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/PhoneAuthProvider.d.ts +16 -0
- package/dist/typescript/lib/providers/PhoneAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/providers/TwitterAuthProvider.d.ts +15 -0
- package/dist/typescript/lib/providers/TwitterAuthProvider.d.ts.map +1 -0
- package/dist/typescript/lib/types/auth.d.ts +305 -0
- package/dist/typescript/lib/types/auth.d.ts.map +1 -0
- package/dist/typescript/lib/types/internal.d.ts +292 -0
- package/dist/typescript/lib/types/internal.d.ts.map +1 -0
- package/dist/typescript/lib/types/namespaced.d.ts +2185 -0
- package/dist/typescript/lib/types/namespaced.d.ts.map +1 -0
- package/dist/typescript/lib/version.d.ts +2 -0
- package/dist/typescript/lib/version.d.ts.map +1 -0
- package/dist/typescript/lib/web/RNFBAuthModule.android.d.ts +3 -0
- package/dist/typescript/lib/web/RNFBAuthModule.android.d.ts.map +1 -0
- package/dist/typescript/lib/web/RNFBAuthModule.d.ts +406 -0
- package/dist/typescript/lib/web/RNFBAuthModule.d.ts.map +1 -0
- package/dist/typescript/lib/web/RNFBAuthModule.ios.d.ts +3 -0
- package/dist/typescript/lib/web/RNFBAuthModule.ios.d.ts.map +1 -0
- package/dist/typescript/package.json +1 -0
- package/ios/RNFBAuth/RNFBAuthModule.m +4 -2
- package/lib/ActionCodeURL.ts +174 -0
- package/lib/ConfirmationResult.ts +42 -0
- package/lib/MultiFactorResolver.ts +51 -0
- package/lib/PhoneAuthListener.ts +312 -0
- package/lib/PhoneAuthState.ts +22 -0
- package/lib/{PhoneMultiFactorGenerator.js → PhoneMultiFactorGenerator.ts} +8 -2
- package/lib/Settings.ts +59 -0
- package/lib/TotpMultiFactorGenerator.ts +78 -0
- package/lib/TotpSecret.ts +71 -0
- package/lib/{User.js → User.ts} +127 -83
- package/lib/constants.ts +55 -0
- package/lib/credentials/AuthCredential.ts +55 -0
- package/lib/credentials/EmailAuthCredential.ts +70 -0
- package/lib/credentials/OAuthCredential.ts +113 -0
- package/lib/credentials/PhoneAuthCredential.ts +66 -0
- package/lib/{providers/GithubAuthProvider.js → credentials/index.ts} +4 -19
- package/lib/getMultiFactorResolver.ts +40 -0
- package/lib/{providers/TwitterAuthProvider.js → index.ts} +14 -19
- package/lib/modular.ts +1158 -0
- package/lib/multiFactor.ts +83 -0
- package/lib/namespaced.ts +846 -0
- package/lib/password-policy/{PasswordPolicyImpl.js → PasswordPolicyImpl.ts} +37 -19
- package/lib/password-policy/PasswordPolicyMixin.ts +83 -0
- package/lib/password-policy/passwordPolicyApi.ts +60 -0
- package/lib/providers/AppleAuthProvider.ts +44 -0
- package/lib/providers/EmailAuthProvider.ts +42 -0
- package/lib/providers/FacebookAuthProvider.ts +58 -0
- package/lib/providers/GithubAuthProvider.ts +51 -0
- package/lib/providers/GoogleAuthProvider.ts +60 -0
- package/lib/providers/OAuthProvider.ts +150 -0
- package/lib/providers/OIDCAuthProvider.ts +49 -0
- package/lib/providers/PhoneAuthProvider.ts +161 -0
- package/lib/providers/TwitterAuthProvider.ts +52 -0
- package/lib/types/auth.ts +393 -0
- package/lib/types/internal.ts +474 -0
- package/lib/{index.d.ts → types/namespaced.ts} +52 -41
- package/lib/version.ts +2 -0
- package/lib/web/RNFBAuthModule.ts +1359 -0
- package/package.json +41 -9
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/tsconfig.json +26 -0
- package/tsdoc.json +22 -0
- package/typedoc.json +9 -2
- package/lib/index.js +0 -572
- package/lib/modular/index.d.ts +0 -801
- package/lib/modular/index.js +0 -651
- package/lib/providers/OAuthProvider.js +0 -70
- package/lib/providers/PhoneAuthProvider.js +0 -52
- package/lib/version.js +0 -2
- /package/lib/web/{RNFBAuthModule.android.js → RNFBAuthModule.android.ts} +0 -0
- /package/lib/web/{RNFBAuthModule.ios.js → RNFBAuthModule.ios.ts} +0 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { ActionCodeOperation, FactorId, OperationType, ProviderId, SignInMethod } from './constants';
|
|
2
|
+
import PhoneMultiFactorGenerator from './PhoneMultiFactorGenerator';
|
|
3
|
+
import { PhoneAuthState } from './PhoneAuthState';
|
|
4
|
+
import TotpMultiFactorGenerator from './TotpMultiFactorGenerator';
|
|
5
|
+
import { TotpSecret } from './TotpSecret';
|
|
6
|
+
import AppleAuthProvider from './providers/AppleAuthProvider';
|
|
7
|
+
import EmailAuthProvider from './providers/EmailAuthProvider';
|
|
8
|
+
import FacebookAuthProvider from './providers/FacebookAuthProvider';
|
|
9
|
+
import GithubAuthProvider from './providers/GithubAuthProvider';
|
|
10
|
+
import GoogleAuthProvider from './providers/GoogleAuthProvider';
|
|
11
|
+
import OAuthProvider from './providers/OAuthProvider';
|
|
12
|
+
import OIDCAuthProvider from './providers/OIDCAuthProvider';
|
|
13
|
+
import PhoneAuthProvider from './providers/PhoneAuthProvider';
|
|
14
|
+
import TwitterAuthProvider from './providers/TwitterAuthProvider';
|
|
15
|
+
import type { FirebaseApp } from '@react-native-firebase/app';
|
|
16
|
+
import { ActionCodeURL } from './ActionCodeURL';
|
|
17
|
+
import type { ActionCodeInfo, ActionCodeSettings, AdditionalUserInfo, ApplicationVerifier, Auth, AuthCredential, AuthProvider, CompleteFn, ConfirmationResult, Dependencies, ErrorFn, IdTokenResult, MultiFactorError, MultiFactorResolver, MultiFactorUser, NextOrObserver, PasswordValidationStatus, Persistence, PhoneAuthCredential, PhoneAuthListener, PopupRedirectResolver, Unsubscribe, User, UserCredential } from './types/auth';
|
|
18
|
+
export { ActionCodeOperation, FactorId, OperationType, ProviderId, SignInMethod, };
|
|
19
|
+
export { ActionCodeURL } from './ActionCodeURL';
|
|
20
|
+
export { AuthCredential, EmailAuthCredential, OAuthCredential, PhoneAuthCredential, } from './credentials';
|
|
21
|
+
export { AppleAuthProvider, EmailAuthProvider, FacebookAuthProvider, GithubAuthProvider, GoogleAuthProvider, OAuthProvider, OIDCAuthProvider, PhoneAuthProvider, PhoneAuthState, PhoneMultiFactorGenerator, TotpMultiFactorGenerator, TotpSecret, TwitterAuthProvider, };
|
|
22
|
+
/**
|
|
23
|
+
* Returns the Auth instance associated with the provided FirebaseApp.
|
|
24
|
+
*
|
|
25
|
+
* @param app - The Firebase app instance. Defaults to the default app.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getAuth(app?: FirebaseApp): Auth;
|
|
28
|
+
/**
|
|
29
|
+
* This function allows more control over the Auth instance than getAuth().
|
|
30
|
+
*
|
|
31
|
+
* @param app - The Firebase app to initialize Auth for.
|
|
32
|
+
* @param _deps - Optional firebase-js-sdk dependency bag.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* The optional `deps` argument exists for firebase-js-sdk API parity. React Native Firebase
|
|
36
|
+
* ignores persistence, popup redirect resolver, and error-map dependencies because native
|
|
37
|
+
* iOS/Android SDKs manage auth state and do not support the web-only persistence stack.
|
|
38
|
+
* `initializeAuth()` returns the same shared Auth instance as {@link getAuth}.
|
|
39
|
+
*/
|
|
40
|
+
export declare function initializeAuth(app: FirebaseApp, _deps?: Dependencies): Auth;
|
|
41
|
+
/**
|
|
42
|
+
* Applies an out-of-band email action code (for example from a password reset or email verification link).
|
|
43
|
+
*/
|
|
44
|
+
export declare function applyActionCode(auth: Auth, oobCode: string): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Registers a callback to run before an auth state change is committed.
|
|
47
|
+
*
|
|
48
|
+
* @returns An unsubscribe function.
|
|
49
|
+
*/
|
|
50
|
+
export declare function beforeAuthStateChanged(auth: Auth, callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
|
|
51
|
+
/**
|
|
52
|
+
* Checks the validity of an out-of-band email action code and returns metadata about the pending operation.
|
|
53
|
+
*
|
|
54
|
+
* @remarks React Native Firebase normalizes native results toward firebase-js-sdk shapes, including mapping
|
|
55
|
+
* `fromEmail` to `previousEmail` and coercing multi-factor info objects.
|
|
56
|
+
*/
|
|
57
|
+
export declare function checkActionCode(auth: Auth, oobCode: string): Promise<ActionCodeInfo>;
|
|
58
|
+
/**
|
|
59
|
+
* Confirms a password reset using the out-of-band code from the reset email.
|
|
60
|
+
*/
|
|
61
|
+
export declare function confirmPasswordReset(auth: Auth, oobCode: string, newPassword: string): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Connects the Auth instance to the Auth emulator.
|
|
64
|
+
*
|
|
65
|
+
* @remarks Delegates to the native `useEmulator` bridge. Accepts the firebase-js-sdk
|
|
66
|
+
* `options.disableWarnings` flag for {@link Auth.emulatorConfig} parity. On web, that flag
|
|
67
|
+
* suppresses the emulator DOM warning banner; native iOS/Android SDKs do not surface that banner,
|
|
68
|
+
* so the value is recorded on `auth.emulatorConfig.options` only. When `options` is provided,
|
|
69
|
+
* `disableWarnings` is required (matching firebase-js-sdk).
|
|
70
|
+
*/
|
|
71
|
+
export declare function connectAuthEmulator(auth: Auth, url: string, options?: {
|
|
72
|
+
disableWarnings: boolean;
|
|
73
|
+
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new user with an email address and password.
|
|
76
|
+
*
|
|
77
|
+
* @remarks Returned {@link UserCredential} objects include top-level `providerId` and `operationType`
|
|
78
|
+
* fields. `additionalUserInfo`, when present, is attached as a non-enumerable property.
|
|
79
|
+
*/
|
|
80
|
+
export declare function createUserWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
|
|
81
|
+
/**
|
|
82
|
+
* Fetches the sign-in methods available for the given email address.
|
|
83
|
+
*/
|
|
84
|
+
export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Extracts a {@link MultiFactorResolver} from a {@link MultiFactorError}.
|
|
87
|
+
*
|
|
88
|
+
* @throws If the error does not contain resolver hints.
|
|
89
|
+
*/
|
|
90
|
+
export declare function getMultiFactorResolver(auth: Auth, error: MultiFactorError): MultiFactorResolver;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the redirect sign-in result after a browser redirect flow completes.
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* **Not supported on React Native Firebase.** Always throws synchronously because native provider
|
|
96
|
+
* flows do not use the browser redirect contract from the firebase-js-sdk.
|
|
97
|
+
*/
|
|
98
|
+
export declare function getRedirectResult(_auth: Auth, _resolver?: PopupRedirectResolver): Promise<UserCredential | null>;
|
|
99
|
+
/**
|
|
100
|
+
* Checks whether an email link is a valid sign-in with email link URL.
|
|
101
|
+
*
|
|
102
|
+
* @remarks React Native Firebase performs this check through the native bridge and returns
|
|
103
|
+
* `Promise<boolean>`. The firebase-js-sdk returns a synchronous `boolean`.
|
|
104
|
+
*/
|
|
105
|
+
export declare function isSignInWithEmailLink(auth: Auth, emailLink: string): Promise<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Subscribes to auth state changes for the given Auth instance.
|
|
108
|
+
*
|
|
109
|
+
* @returns An unsubscribe function.
|
|
110
|
+
*
|
|
111
|
+
* @remarks The legacy `error` and `completed` callback overload exists for firebase-js-sdk API parity.
|
|
112
|
+
* Native auth listeners never invoke separate error or completed callbacks.
|
|
113
|
+
*/
|
|
114
|
+
export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, _error?: ErrorFn, _completed?: CompleteFn): Unsubscribe;
|
|
115
|
+
/**
|
|
116
|
+
* Subscribes to ID token changes for the given Auth instance.
|
|
117
|
+
*
|
|
118
|
+
* @returns An unsubscribe function.
|
|
119
|
+
*
|
|
120
|
+
* @remarks The legacy `error` and `completed` callback overload exists for firebase-js-sdk API parity.
|
|
121
|
+
* Native auth listeners never invoke separate error or completed callbacks.
|
|
122
|
+
*/
|
|
123
|
+
export declare function onIdTokenChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, _error?: ErrorFn, _completed?: CompleteFn): Unsubscribe;
|
|
124
|
+
/**
|
|
125
|
+
* Revokes the given OAuth access token for the current user.
|
|
126
|
+
*
|
|
127
|
+
* @remarks
|
|
128
|
+
* **Web only.** Always throws synchronously on React Native Firebase.
|
|
129
|
+
*/
|
|
130
|
+
export declare function revokeAccessToken(_auth: Auth, _token: string): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Sends a password reset email to the given address.
|
|
133
|
+
*/
|
|
134
|
+
export declare function sendPasswordResetEmail(auth: Auth, email: string, actionCodeSettings?: ActionCodeSettings): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Sends a sign-in with email link to the given address.
|
|
137
|
+
*
|
|
138
|
+
* @remarks `actionCodeSettings` is required in the modular API (matching firebase-js-sdk).
|
|
139
|
+
* The namespaced `firebase.auth().sendSignInLinkToEmail(email, settings?)` API still supplies
|
|
140
|
+
* defaults when settings are omitted.
|
|
141
|
+
*/
|
|
142
|
+
export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionCodeSettings: ActionCodeSettings): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Sets the persistence type for the Auth instance.
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* **Not supported on React Native Firebase.** Always throws synchronously because auth state is
|
|
148
|
+
* managed by the native iOS/Android SDKs rather than the web persistence stack.
|
|
149
|
+
*/
|
|
150
|
+
export declare function setPersistence(_auth: Auth, _persistence: Persistence): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Signs in anonymously.
|
|
153
|
+
*/
|
|
154
|
+
export declare function signInAnonymously(auth: Auth): Promise<UserCredential>;
|
|
155
|
+
/**
|
|
156
|
+
* Signs in with the given auth credential.
|
|
157
|
+
*/
|
|
158
|
+
export declare function signInWithCredential(auth: Auth, credential: AuthCredential): Promise<UserCredential>;
|
|
159
|
+
/**
|
|
160
|
+
* Signs in with a custom authentication token.
|
|
161
|
+
*/
|
|
162
|
+
export declare function signInWithCustomToken(auth: Auth, customToken: string): Promise<UserCredential>;
|
|
163
|
+
/**
|
|
164
|
+
* Signs in with an email address and password.
|
|
165
|
+
*/
|
|
166
|
+
export declare function signInWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
|
|
167
|
+
/**
|
|
168
|
+
* Signs in using an email and sign-in with email link.
|
|
169
|
+
*
|
|
170
|
+
* @remarks The `emailLink` argument is optional, matching firebase-js-sdk.
|
|
171
|
+
*/
|
|
172
|
+
export declare function signInWithEmailLink(auth: Auth, email: string, emailLink?: string): Promise<UserCredential>;
|
|
173
|
+
/**
|
|
174
|
+
* Signs in with a phone number and returns a confirmation result for SMS verification.
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* Native SDKs own the phone verification flow. The optional `appVerifier` argument from the
|
|
178
|
+
* firebase-js-sdk is ignored. This modular API also does not accept RNFB's legacy `forceResend`
|
|
179
|
+
* argument — use {@link verifyPhoneNumber} for the native listener / force-resend flow instead.
|
|
180
|
+
*/
|
|
181
|
+
export declare function signInWithPhoneNumber(auth: Auth, phoneNumber: string, _appVerifier?: ApplicationVerifier): Promise<ConfirmationResult>;
|
|
182
|
+
/**
|
|
183
|
+
* Starts native phone number verification and returns a listener for verification events.
|
|
184
|
+
*
|
|
185
|
+
* @remarks React Native Firebase-specific API with no firebase-js-sdk equivalent. Use this for
|
|
186
|
+
* auto-verification, resend, and multi-step phone auth flows that require native callbacks.
|
|
187
|
+
*/
|
|
188
|
+
export declare function verifyPhoneNumber(auth: Auth, phoneNumber: string, autoVerifyTimeoutOrForceResend?: number | boolean, forceResend?: boolean): PhoneAuthListener;
|
|
189
|
+
/**
|
|
190
|
+
* Signs in with the given provider using a native popup-style flow where supported.
|
|
191
|
+
*/
|
|
192
|
+
export declare function signInWithPopup(auth: Auth, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
193
|
+
/**
|
|
194
|
+
* Signs in with the given provider using a redirect-style flow.
|
|
195
|
+
*
|
|
196
|
+
* @remarks On React Native Firebase, native provider flows complete immediately and resolve with a
|
|
197
|
+
* {@link UserCredential} instead of following the browser redirect contract used by the
|
|
198
|
+
* firebase-js-sdk (which resolves later via {@link getRedirectResult}).
|
|
199
|
+
*/
|
|
200
|
+
export declare function signInWithRedirect(auth: Auth, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
201
|
+
/**
|
|
202
|
+
* Signs out the current user for the given Auth instance.
|
|
203
|
+
*/
|
|
204
|
+
export declare function signOut(auth: Auth): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Updates the currently signed-in user on the Auth instance.
|
|
207
|
+
*/
|
|
208
|
+
export declare function updateCurrentUser(auth: Auth, user: User | null): Promise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* Sets the Auth `languageCode` from the device locale.
|
|
211
|
+
*
|
|
212
|
+
* @remarks
|
|
213
|
+
* **Not supported on React Native Firebase.** Always throws synchronously. Set `auth.languageCode`
|
|
214
|
+
* directly or use {@link setLanguageCode}.
|
|
215
|
+
*/
|
|
216
|
+
export declare function useDeviceLanguage(_auth: Auth): void;
|
|
217
|
+
/**
|
|
218
|
+
* Sets the Auth language code.
|
|
219
|
+
*
|
|
220
|
+
* @remarks React Native Firebase exposes this as a modular helper. The firebase-js-sdk only exposes
|
|
221
|
+
* the writable `auth.languageCode` property.
|
|
222
|
+
*/
|
|
223
|
+
export declare function setLanguageCode(auth: Auth, languageCode: string | null): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Configures iOS keychain access group sharing for the Auth instance.
|
|
226
|
+
*
|
|
227
|
+
* @remarks React Native Firebase-specific iOS helper with no firebase-js-sdk equivalent.
|
|
228
|
+
*/
|
|
229
|
+
export declare function useUserAccessGroup(auth: Auth, userAccessGroup: string): Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Verifies a password reset code and returns the associated email address.
|
|
232
|
+
*/
|
|
233
|
+
export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Parses an email action link string.
|
|
236
|
+
*
|
|
237
|
+
* @param link - The email action link to parse.
|
|
238
|
+
* @returns The {@link ActionCodeURL} object, or `null` if the link is invalid.
|
|
239
|
+
*
|
|
240
|
+
* @remarks Pure URL parsing (ported from firebase-js-sdk). Works on all platforms without a native
|
|
241
|
+
* bridge. See also {@link ActionCodeURL.parseLink}.
|
|
242
|
+
*/
|
|
243
|
+
export declare function parseActionCodeURL(link: string): ActionCodeURL | null;
|
|
244
|
+
/**
|
|
245
|
+
* Deletes the given user account.
|
|
246
|
+
*/
|
|
247
|
+
export declare function deleteUser(user: User): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Returns the current ID token for the user.
|
|
250
|
+
*/
|
|
251
|
+
export declare function getIdToken(user: User, forceRefresh?: boolean): Promise<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Returns the decoded ID token result for the user.
|
|
254
|
+
*/
|
|
255
|
+
export declare function getIdTokenResult(user: User, forceRefresh?: boolean): Promise<IdTokenResult>;
|
|
256
|
+
/**
|
|
257
|
+
* Links the user account with the given credential.
|
|
258
|
+
*/
|
|
259
|
+
export declare function linkWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
|
|
260
|
+
/**
|
|
261
|
+
* Links the user account with a phone number using SMS verification.
|
|
262
|
+
*
|
|
263
|
+
* @remarks
|
|
264
|
+
* **Not supported on React Native Firebase.** Always throws synchronously.
|
|
265
|
+
*/
|
|
266
|
+
export declare function linkWithPhoneNumber(_user: User, _phoneNumber: string, _appVerifier?: ApplicationVerifier): Promise<ConfirmationResult>;
|
|
267
|
+
/**
|
|
268
|
+
* Links the user account with the given provider using a native popup-style flow where supported.
|
|
269
|
+
*/
|
|
270
|
+
export declare function linkWithPopup(user: User, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
271
|
+
/**
|
|
272
|
+
* Links the user account with the given provider using a redirect-style flow.
|
|
273
|
+
*
|
|
274
|
+
* @remarks On React Native Firebase, native provider flows complete immediately and resolve with a
|
|
275
|
+
* {@link UserCredential} instead of following the browser redirect contract used by the
|
|
276
|
+
* firebase-js-sdk.
|
|
277
|
+
*/
|
|
278
|
+
export declare function linkWithRedirect(user: User, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
279
|
+
/**
|
|
280
|
+
* Returns the multi-factor interface for the given user.
|
|
281
|
+
*
|
|
282
|
+
* @remarks Uses the user's own Auth instance instead of always calling {@link getAuth}, which fixes
|
|
283
|
+
* secondary Firebase app usage compared with earlier RNFB behavior.
|
|
284
|
+
*/
|
|
285
|
+
export declare function multiFactor(user: User): MultiFactorUser;
|
|
286
|
+
/**
|
|
287
|
+
* Reauthenticates the user with the given credential.
|
|
288
|
+
*/
|
|
289
|
+
export declare function reauthenticateWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
|
|
290
|
+
/**
|
|
291
|
+
* Reauthenticates the user with a phone number using SMS verification.
|
|
292
|
+
*
|
|
293
|
+
* @remarks
|
|
294
|
+
* **Not supported on React Native Firebase.** Always throws synchronously.
|
|
295
|
+
*/
|
|
296
|
+
export declare function reauthenticateWithPhoneNumber(_user: User, _phoneNumber: string, _appVerifier?: ApplicationVerifier): Promise<ConfirmationResult>;
|
|
297
|
+
/**
|
|
298
|
+
* Reauthenticates the user with the given provider using a native popup-style flow where supported.
|
|
299
|
+
*/
|
|
300
|
+
export declare function reauthenticateWithPopup(user: User, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
301
|
+
/**
|
|
302
|
+
* Reauthenticates the user with the given provider using a redirect-style flow.
|
|
303
|
+
*
|
|
304
|
+
* @remarks On React Native Firebase, native provider flows do not follow the browser redirect
|
|
305
|
+
* contract. This resolves with `void` after the native flow completes instead of the
|
|
306
|
+
* firebase-js-sdk `Promise<never>` signature used for unresolved browser redirects.
|
|
307
|
+
*/
|
|
308
|
+
export declare function reauthenticateWithRedirect(user: User, provider: AuthProvider, _resolver?: PopupRedirectResolver): Promise<void>;
|
|
309
|
+
/**
|
|
310
|
+
* Reloads the user's profile data from the server.
|
|
311
|
+
*/
|
|
312
|
+
export declare function reload(user: User): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* Sends an email verification message to the user.
|
|
315
|
+
*/
|
|
316
|
+
export declare function sendEmailVerification(user: User, actionCodeSettings?: ActionCodeSettings | null): Promise<void>;
|
|
317
|
+
/**
|
|
318
|
+
* Unlinks a provider from the user account.
|
|
319
|
+
*/
|
|
320
|
+
export declare function unlink(user: User, providerId: string): Promise<User>;
|
|
321
|
+
/**
|
|
322
|
+
* Updates the user's email address.
|
|
323
|
+
*/
|
|
324
|
+
export declare function updateEmail(user: User, newEmail: string): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* Updates the user's password.
|
|
327
|
+
*/
|
|
328
|
+
export declare function updatePassword(user: User, newPassword: string): Promise<void>;
|
|
329
|
+
/**
|
|
330
|
+
* Updates the user's phone number using a phone auth credential.
|
|
331
|
+
*/
|
|
332
|
+
export declare function updatePhoneNumber(user: User, credential: PhoneAuthCredential): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Updates the user's display name and/or photo URL.
|
|
335
|
+
*/
|
|
336
|
+
export declare function updateProfile(user: User, profile: {
|
|
337
|
+
displayName?: string | null;
|
|
338
|
+
photoURL?: string | null;
|
|
339
|
+
}): Promise<void>;
|
|
340
|
+
/**
|
|
341
|
+
* Sends a verification email to the new address before updating the user's email.
|
|
342
|
+
*/
|
|
343
|
+
export declare function verifyBeforeUpdateEmail(user: User, newEmail: string, actionCodeSettings?: ActionCodeSettings | null): Promise<void>;
|
|
344
|
+
/**
|
|
345
|
+
* Returns additional OAuth / federated sign-in information from a {@link UserCredential}.
|
|
346
|
+
*
|
|
347
|
+
* @remarks Returns firebase-js-sdk core fields plus any extra native keys copied from the bridge.
|
|
348
|
+
*/
|
|
349
|
+
export declare function getAdditionalUserInfo(userCredential: UserCredential): AdditionalUserInfo | null;
|
|
350
|
+
/**
|
|
351
|
+
* Returns the configured custom auth domain for the Auth instance.
|
|
352
|
+
*
|
|
353
|
+
* @remarks React Native Firebase-specific helper with no firebase-js-sdk equivalent.
|
|
354
|
+
*/
|
|
355
|
+
export declare function getCustomAuthDomain(auth: Auth): Promise<string>;
|
|
356
|
+
/**
|
|
357
|
+
* Validates a password against the project's password policy.
|
|
358
|
+
*/
|
|
359
|
+
export declare function validatePassword(auth: Auth, password: string): Promise<PasswordValidationStatus>;
|
|
360
|
+
//# sourceMappingURL=modular.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../lib/modular.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,iBAAiB,MAAM,+BAA+B,CAAC;AAC9D,OAAO,iBAAiB,MAAM,+BAA+B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,kCAAkC,CAAC;AACpE,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OA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FactorAssertion } from './types/auth';
|
|
2
|
+
import type { FirebaseAuthTypes } from './types/namespaced';
|
|
3
|
+
import type { AuthInternal } from './types/internal';
|
|
4
|
+
type MultiFactorAuthHost = {
|
|
5
|
+
currentUser: FirebaseAuthTypes.User | null;
|
|
6
|
+
native: AuthInternal['native'];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Return a MultiFactorUser instance the gateway to multi-factor operations.
|
|
10
|
+
*/
|
|
11
|
+
export declare function multiFactor(auth: MultiFactorAuthHost): FirebaseAuthTypes.MultiFactorUser;
|
|
12
|
+
export declare class MultiFactorUser {
|
|
13
|
+
readonly enrolledFactors: FirebaseAuthTypes.MultiFactorInfo[];
|
|
14
|
+
private readonly _auth;
|
|
15
|
+
constructor(auth: MultiFactorAuthHost, user?: FirebaseAuthTypes.User);
|
|
16
|
+
getSession(): Promise<FirebaseAuthTypes.MultiFactorSession>;
|
|
17
|
+
/**
|
|
18
|
+
* Finalize the enrollment process for the given multi-factor assertion.
|
|
19
|
+
* Optionally set a displayName. This method will reload the current user
|
|
20
|
+
* profile, which is necessary to see the multi-factor changes.
|
|
21
|
+
*/
|
|
22
|
+
enroll(multiFactorAssertion: FirebaseAuthTypes.MultiFactorAssertion | ModularMultiFactorAssertion, displayName?: string | null): Promise<void>;
|
|
23
|
+
unenroll(enrollmentId: FirebaseAuthTypes.MultiFactorInfo | string): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=multiFactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiFactor.d.ts","sourceRoot":"","sources":["../../../lib/multiFactor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,IAAI,2BAA2B,EAEpD,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AAE7F,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,iBAAiB,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC,CAAC;AACF;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,mBAAmB,GAAG,iBAAiB,CAAC,eAAe,CAExF;AAED,qBAAa,eAAe;IAC1B,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,eAAe,EAAE,CAAC;IAC9D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;gBAEhC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,iBAAiB,CAAC,IAAI;IAapE,UAAU,IAAI,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IAI3D;;;;OAIG;IACG,MAAM,CACV,oBAAoB,EAAE,iBAAiB,CAAC,oBAAoB,GAAG,2BAA2B,EAC1F,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAC1B,OAAO,CAAC,IAAI,CAAC;IAyBV,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CASxF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
2
|
+
import type { FirebaseAuthTypes } from './types/namespaced';
|
|
3
|
+
export declare const SDK_VERSION = "25.0.0";
|
|
4
|
+
type AuthNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseAuthTypes.Module, FirebaseAuthTypes.Statics> & {
|
|
5
|
+
auth: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseAuthTypes.Module, FirebaseAuthTypes.Statics>;
|
|
6
|
+
firebase: ReactNativeFirebase.Module;
|
|
7
|
+
app(name?: string): ReactNativeFirebase.FirebaseApp;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: AuthNamespace;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"auth", FirebaseAuthTypes.Module, FirebaseAuthTypes.Statics, false>;
|
|
12
|
+
//# sourceMappingURL=namespaced.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AA6BtE,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA4uBhF,eAAO,MAAM,WAAW,WAAU,CAAC;AAanC,KAAK,aAAa,GAAG,mBAAmB,CAAC,+BAA+B,CACtE,iBAAiB,CAAC,MAAM,EACxB,iBAAiB,CAAC,OAAO,CAC1B,GAAG;IACF,IAAI,EAAE,mBAAmB,CAAC,+BAA+B,CACvD,iBAAiB,CAAC,MAAM,EACxB,iBAAiB,CAAC,OAAO,CAC1B,CAAC;IACF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;wBAIyC,aAAa;AAAxD,wBAAyD;AAKzD,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,MAAM,EACN,iBAAiB,CAAC,MAAM,EACxB,iBAAiB,CAAC,OAAO,EACzB,KAAK,CACN,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PasswordPolicyCustomStrengthOptionsInternal, PasswordPolicyInternal, PasswordPolicyResponseInternal, PasswordValidationStatusInternal } from '../types/internal';
|
|
2
|
+
/**
|
|
3
|
+
* Stores password policy requirements and provides password validation against the policy.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class PasswordPolicyImpl implements PasswordPolicyInternal {
|
|
8
|
+
customStrengthOptions: PasswordPolicyCustomStrengthOptionsInternal;
|
|
9
|
+
allowedNonAlphanumericCharacters: string;
|
|
10
|
+
enforcementState: string;
|
|
11
|
+
forceUpgradeOnSignin: boolean;
|
|
12
|
+
schemaVersion: number;
|
|
13
|
+
constructor(response: PasswordPolicyResponseInternal);
|
|
14
|
+
validatePassword(password: string): PasswordValidationStatusInternal;
|
|
15
|
+
private validatePasswordLengthOptions;
|
|
16
|
+
private validatePasswordCharacterOptions;
|
|
17
|
+
private updatePasswordCharacterOptionsStatuses;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PasswordPolicyImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordPolicyImpl.d.ts","sourceRoot":"","sources":["../../../../lib/password-policy/PasswordPolicyImpl.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,2CAA2C,EAC3C,sBAAsB,EACtB,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,mBAAmB,CAAC;AAK3B;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,sBAAsB;IAC/D,qBAAqB,EAAE,2CAA2C,CAAC;IACnE,gCAAgC,EAAE,MAAM,CAAC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;gBAEV,QAAQ,EAAE,8BAA8B;IAuCpD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,gCAAgC;IAmBpE,OAAO,CAAC,6BAA6B;IAcrC,OAAO,CAAC,gCAAgC;IAkBxC,OAAO,CAAC,sCAAsC;CAoB/C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PasswordPolicyHostInternal, PasswordPolicyMixinInternal } from '../types/internal';
|
|
2
|
+
type PasswordPolicyMixinTarget = PasswordPolicyHostInternal & PasswordPolicyMixinInternal;
|
|
3
|
+
type PasswordPolicyMixinShape = PasswordPolicyMixinInternal & ThisType<PasswordPolicyMixinTarget>;
|
|
4
|
+
/**
|
|
5
|
+
* Password policy mixin - provides password policy caching and validation.
|
|
6
|
+
* Expects the target object to have: _tenantId, _projectPasswordPolicy,
|
|
7
|
+
* _tenantPasswordPolicies, and app.options.apiKey
|
|
8
|
+
*/
|
|
9
|
+
export declare const PasswordPolicyMixin: PasswordPolicyMixinShape;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=PasswordPolicyMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordPolicyMixin.d.ts","sourceRoot":"","sources":["../../../../lib/password-policy/PasswordPolicyMixin.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,0BAA0B,EAE1B,2BAA2B,EAE5B,MAAM,mBAAmB,CAAC;AAI3B,KAAK,yBAAyB,GAAG,0BAA0B,GAAG,2BAA2B,CAAC;AAC1F,KAAK,wBAAwB,GAAG,2BAA2B,GAAG,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AAElG;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,wBA8CjC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PasswordPolicyHostInternal, PasswordPolicyResponseInternal } from '../types/internal';
|
|
2
|
+
/**
|
|
3
|
+
* Performs an API request to Firebase Console to get password policy json.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} auth - The authentication instance
|
|
6
|
+
* @returns {Promise<Response>} A promise that resolves to the API response.
|
|
7
|
+
* @throws {Error} Throws an error if the request fails or encounters an issue.
|
|
8
|
+
*/
|
|
9
|
+
export declare function fetchPasswordPolicy(auth: PasswordPolicyHostInternal): Promise<PasswordPolicyResponseInternal>;
|
|
10
|
+
//# sourceMappingURL=passwordPolicyApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwordPolicyApi.d.ts","sourceRoot":"","sources":["../../../../lib/password-policy/passwordPolicyApi.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAUpG;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,8BAA8B,CAAC,CAuBzC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AuthCredential as AuthCredentialType } from '../types/auth';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use {@link OAuthProvider} with provider ID `apple.com` instead.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```js
|
|
7
|
+
* const provider = new OAuthProvider('apple.com');
|
|
8
|
+
* const credential = provider.credential({ idToken, rawNonce });
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export default class AppleAuthProvider {
|
|
12
|
+
constructor();
|
|
13
|
+
static get PROVIDER_ID(): "apple.com";
|
|
14
|
+
static credential(token: string, secret?: string): AuthCredentialType;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AppleAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppleAuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/providers/AppleAuthProvider.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAI1E;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;;IAKpC,MAAM,KAAK,WAAW,gBAErB;IAED,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAGtE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EmailAuthCredential } from '../types/auth';
|
|
2
|
+
export default class EmailAuthProvider {
|
|
3
|
+
static readonly EMAIL_LINK_SIGN_IN_METHOD: 'emailLink';
|
|
4
|
+
static readonly EMAIL_PASSWORD_SIGN_IN_METHOD: 'password';
|
|
5
|
+
static readonly PROVIDER_ID: 'password';
|
|
6
|
+
readonly providerId: "password";
|
|
7
|
+
constructor();
|
|
8
|
+
static credential(email: string, password: string): EmailAuthCredential;
|
|
9
|
+
static credentialWithLink(email: string, emailLink: string): EmailAuthCredential;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=EmailAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailAuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/providers/EmailAuthProvider.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,EAAE,WAAW,CAAkB;IACxE,MAAM,CAAC,QAAQ,CAAC,6BAA6B,EAAE,UAAU,CAAsB;IAC/E,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAsB;IAE7D,QAAQ,CAAC,UAAU,aAAsB;;IAMzC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,mBAAmB;IAIvE,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,mBAAmB;CAGjF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OAuthCredential } from '../credentials';
|
|
2
|
+
import type { AuthError, UserCredential } from '../types/auth';
|
|
3
|
+
type FirebaseError = AuthError;
|
|
4
|
+
export default class FacebookAuthProvider {
|
|
5
|
+
static readonly FACEBOOK_SIGN_IN_METHOD: 'facebook.com';
|
|
6
|
+
static readonly PROVIDER_ID: 'facebook.com';
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* @remarks Optional `secret` for Facebook limited-login nonce behaviour (matches firebase-js-sdk).
|
|
10
|
+
*/
|
|
11
|
+
static credential(token: string): OAuthCredential;
|
|
12
|
+
static credential(token: string, secret: string): OAuthCredential;
|
|
13
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
14
|
+
static credentialFromResult(_userCredential: UserCredential): OAuthCredential | null;
|
|
15
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
16
|
+
static credentialFromError(_error: FirebaseError): OAuthCredential | null;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=FacebookAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FacebookAuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/providers/FacebookAuthProvider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/D,KAAK,aAAa,GAAG,SAAS,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,EAAE,cAAc,CAAc;IACrE,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAc;;IAMzD;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe;IACjD,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe;IAWjE,+DAA+D;IAC/D,MAAM,CAAC,oBAAoB,CAAC,eAAe,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI;IAIpF,+DAA+D;IAC/D,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe,GAAG,IAAI;CAG1E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OAuthCredential } from '../credentials';
|
|
2
|
+
import type { AuthError, UserCredential } from '../types/auth';
|
|
3
|
+
type FirebaseError = AuthError;
|
|
4
|
+
export default class GithubAuthProvider {
|
|
5
|
+
static readonly GITHUB_SIGN_IN_METHOD: 'github.com';
|
|
6
|
+
static readonly PROVIDER_ID: 'github.com';
|
|
7
|
+
constructor();
|
|
8
|
+
static credential(token: string): OAuthCredential;
|
|
9
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
10
|
+
static credentialFromResult(_userCredential: UserCredential): OAuthCredential | null;
|
|
11
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
12
|
+
static credentialFromError(_error: FirebaseError): OAuthCredential | null;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=GithubAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GithubAuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/providers/GithubAuthProvider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/D,KAAK,aAAa,GAAG,SAAS,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE,YAAY,CAAc;IACjE,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAc;;IAMvD,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe;IAQjD,+DAA+D;IAC/D,MAAM,CAAC,oBAAoB,CAAC,eAAe,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI;IAIpF,+DAA+D;IAC/D,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe,GAAG,IAAI;CAG1E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OAuthCredential } from '../credentials';
|
|
2
|
+
import type { AuthError, UserCredential } from '../types/auth';
|
|
3
|
+
type FirebaseError = AuthError;
|
|
4
|
+
export default class GoogleAuthProvider {
|
|
5
|
+
static readonly GOOGLE_SIGN_IN_METHOD: 'google.com';
|
|
6
|
+
static readonly PROVIDER_ID: 'google.com';
|
|
7
|
+
constructor();
|
|
8
|
+
static credential(idToken?: string | null, accessToken?: string | null): OAuthCredential;
|
|
9
|
+
/**
|
|
10
|
+
* @remarks Always returns `null` on React Native Firebase. Credentials are not extractable from
|
|
11
|
+
* native provider sign-in results.
|
|
12
|
+
*/
|
|
13
|
+
static credentialFromResult(_userCredential: UserCredential): OAuthCredential | null;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks Always returns `null` on React Native Firebase. Credentials are not extractable from
|
|
16
|
+
* native provider errors.
|
|
17
|
+
*/
|
|
18
|
+
static credentialFromError(_error: FirebaseError): OAuthCredential | null;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=GoogleAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleAuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/providers/GoogleAuthProvider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/D,KAAK,aAAa,GAAG,SAAS,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE,YAAY,CAAc;IACjE,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAc;;IAMvD,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe;IAWxF;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,eAAe,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI;IAIpF;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe,GAAG,IAAI;CAG1E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OAuthCredential } from '../credentials';
|
|
2
|
+
import type { AuthCredential, AuthError, CustomParameters, OAuthCredentialOptions, UserCredential } from '../types/auth';
|
|
3
|
+
type FirebaseError = AuthError;
|
|
4
|
+
export default class OAuthProvider {
|
|
5
|
+
/** @internal */
|
|
6
|
+
private providerId;
|
|
7
|
+
/** @internal */
|
|
8
|
+
private customParameters;
|
|
9
|
+
/** @internal */
|
|
10
|
+
private scopes;
|
|
11
|
+
constructor(providerId: string);
|
|
12
|
+
/** @internal */
|
|
13
|
+
static credential(idToken: string, accessToken?: string): AuthCredential;
|
|
14
|
+
static credentialFromJSON(json: object | string): OAuthCredential;
|
|
15
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
16
|
+
static credentialFromResult(_userCredential: UserCredential): OAuthCredential | null;
|
|
17
|
+
/** @remarks Always returns `null` on React Native Firebase. */
|
|
18
|
+
static credentialFromError(_error: FirebaseError): OAuthCredential | null;
|
|
19
|
+
credential(params: OAuthCredentialOptions): OAuthCredential;
|
|
20
|
+
get PROVIDER_ID(): string;
|
|
21
|
+
setCustomParameters(customOAuthParameters: CustomParameters): OAuthProvider;
|
|
22
|
+
getCustomParameters(): CustomParameters;
|
|
23
|
+
addScope(scope: string): OAuthProvider;
|
|
24
|
+
getScopes(): string[];
|
|
25
|
+
/** @internal */
|
|
26
|
+
toObject(): {
|
|
27
|
+
providerId: string;
|
|
28
|
+
scopes: string[];
|
|
29
|
+
customParameters: CustomParameters;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=OAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProvider.d.ts","sourceR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