@react-native-firebase/auth 25.0.1 → 26.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 +30 -0
- package/RNFBAuth.podspec +14 -6
- package/android/build.gradle +23 -0
- package/android/src/main/java/io/invertase/firebase/auth/{ReactNativeFirebaseAuthModule.java → NativeRNFBTurboAuth.java} +122 -102
- package/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthPackage.java +1 -1
- package/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthSyncException.java +35 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboAuthSpec.java +308 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/jni/CMakeLists.txt +36 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/jni/RNFBAuthTurboModules-generated.cpp +392 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/jni/RNFBAuthTurboModules.h +31 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/jni/react/renderer/components/RNFBAuthTurboModules/RNFBAuthTurboModulesJSI-generated.cpp +538 -0
- package/android/src/main/java/io/invertase/firebase/auth/generated/jni/react/renderer/components/RNFBAuthTurboModules/RNFBAuthTurboModulesJSI.h +611 -0
- package/app.plugin.js +1 -1
- package/dist/module/ActionCodeURL.js.map +1 -1
- package/dist/module/ConfirmationResult.js.map +1 -1
- package/dist/module/MultiFactorResolver.js.map +1 -1
- package/dist/module/PhoneAuthListener.js +3 -4
- package/dist/module/PhoneAuthListener.js.map +1 -1
- package/dist/module/TotpMultiFactorGenerator.js +1 -1
- package/dist/module/TotpMultiFactorGenerator.js.map +1 -1
- package/dist/module/TotpSecret.js +15 -9
- package/dist/module/TotpSecret.js.map +1 -1
- package/dist/module/User.js +1 -1
- package/dist/module/User.js.map +1 -1
- package/dist/module/credentials/EmailAuthCredential.js.map +1 -1
- package/dist/module/credentials/OAuthCredential.js.map +1 -1
- package/dist/module/getMultiFactorResolver.js +2 -2
- package/dist/module/getMultiFactorResolver.js.map +1 -1
- package/dist/module/index.js +1221 -6
- package/dist/module/index.js.map +1 -1
- package/dist/module/internal/syncNativeError.js +75 -0
- package/dist/module/internal/syncNativeError.js.map +1 -0
- package/dist/module/multiFactor.js +5 -3
- package/dist/module/multiFactor.js.map +1 -1
- package/dist/module/providers/OIDCAuthProvider.js.map +1 -1
- package/dist/module/providers/PhoneAuthProvider.js +4 -4
- package/dist/module/providers/PhoneAuthProvider.js.map +1 -1
- package/dist/module/types/auth.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/web/RNFBAuthModule.js +13 -7
- package/dist/module/web/RNFBAuthModule.js.map +1 -1
- package/dist/typescript/lib/ActionCodeURL.d.ts.map +1 -1
- package/dist/typescript/lib/ConfirmationResult.d.ts +2 -2
- package/dist/typescript/lib/ConfirmationResult.d.ts.map +1 -1
- package/dist/typescript/lib/MultiFactorResolver.d.ts +6 -6
- package/dist/typescript/lib/MultiFactorResolver.d.ts.map +1 -1
- package/dist/typescript/lib/PhoneAuthListener.d.ts +1 -4
- package/dist/typescript/lib/PhoneAuthListener.d.ts.map +1 -1
- package/dist/typescript/lib/TotpSecret.d.ts +2 -4
- package/dist/typescript/lib/TotpSecret.d.ts.map +1 -1
- package/dist/typescript/lib/User.d.ts +13 -13
- package/dist/typescript/lib/User.d.ts.map +1 -1
- package/dist/typescript/lib/credentials/EmailAuthCredential.d.ts.map +1 -1
- package/dist/typescript/lib/credentials/OAuthCredential.d.ts.map +1 -1
- package/dist/typescript/lib/getMultiFactorResolver.d.ts +5 -5
- package/dist/typescript/lib/getMultiFactorResolver.d.ts.map +1 -1
- package/dist/typescript/lib/index.d.ts +377 -4
- package/dist/typescript/lib/index.d.ts.map +1 -1
- package/dist/typescript/lib/internal/syncNativeError.d.ts +6 -0
- package/dist/typescript/lib/internal/syncNativeError.d.ts.map +1 -0
- package/dist/typescript/lib/multiFactor.d.ts +9 -9
- package/dist/typescript/lib/multiFactor.d.ts.map +1 -1
- package/dist/typescript/lib/providers/OIDCAuthProvider.d.ts.map +1 -1
- package/dist/typescript/lib/providers/PhoneAuthProvider.d.ts.map +1 -1
- package/dist/typescript/lib/types/auth.d.ts +13 -0
- package/dist/typescript/lib/types/auth.d.ts.map +1 -1
- package/dist/typescript/lib/types/internal.d.ts +44 -47
- package/dist/typescript/lib/types/internal.d.ts.map +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/dist/typescript/lib/web/RNFBAuthModule.d.ts +4 -4
- package/dist/typescript/lib/web/RNFBAuthModule.d.ts.map +1 -1
- package/ios/RNFBAuth/RNFBAuthModule.h +2 -2
- package/ios/RNFBAuth/{RNFBAuthModule.m → RNFBAuthModule.mm} +408 -297
- package/ios/RNFBAuth.xcodeproj/project.pbxproj +8 -8
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
- package/ios/generated/RNFBAuthTurboModules/RNFBAuthTurboModules-generated.mm +459 -0
- package/ios/generated/RNFBAuthTurboModules/RNFBAuthTurboModules.h +341 -0
- package/ios/generated/RNFBAuthTurboModulesJSI-generated.cpp +538 -0
- package/ios/generated/RNFBAuthTurboModulesJSI.h +611 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/lib/ActionCodeURL.ts +3 -9
- package/lib/ConfirmationResult.ts +3 -6
- package/lib/MultiFactorResolver.ts +8 -8
- package/lib/PhoneAuthListener.ts +6 -10
- package/lib/TotpMultiFactorGenerator.ts +1 -1
- package/lib/TotpSecret.ts +22 -9
- package/lib/User.ts +38 -51
- package/lib/credentials/EmailAuthCredential.ts +1 -5
- package/lib/credentials/OAuthCredential.ts +4 -1
- package/lib/getMultiFactorResolver.ts +9 -9
- package/lib/index.ts +1836 -6
- package/lib/internal/syncNativeError.ts +89 -0
- package/lib/multiFactor.ts +24 -18
- package/lib/providers/OIDCAuthProvider.ts +1 -5
- package/lib/providers/PhoneAuthProvider.ts +9 -22
- package/lib/types/auth.ts +15 -0
- package/lib/types/internal.ts +68 -73
- package/lib/version.ts +1 -1
- package/lib/web/RNFBAuthModule.ts +13 -10
- package/package.json +30 -4
- package/plugin/build/app.plugin.d.ts +2 -0
- package/plugin/build/app.plugin.js +6 -0
- package/plugin/src/app.plugin.ts +3 -0
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/react-native.config.js +9 -0
- package/specs/NativeRNFBTurboAuth.ts +143 -0
- package/typedoc.json +0 -1
- package/dist/module/modular.js +0 -793
- package/dist/module/modular.js.map +0 -1
- package/dist/module/namespaced.js +0 -522
- package/dist/module/namespaced.js.map +0 -1
- package/dist/module/types/namespaced.js +0 -62
- package/dist/module/types/namespaced.js.map +0 -1
- package/dist/typescript/lib/modular.d.ts +0 -370
- package/dist/typescript/lib/modular.d.ts.map +0 -1
- package/dist/typescript/lib/namespaced.d.ts +0 -12
- package/dist/typescript/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/lib/types/namespaced.d.ts +0 -2185
- package/dist/typescript/lib/types/namespaced.d.ts.map +0 -1
- package/lib/modular.ts +0 -1172
- package/lib/namespaced.ts +0 -846
- package/lib/types/namespaced.ts +0 -2350
package/package.json
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
|
|
6
6
|
"main": "./dist/module/index.js",
|
|
7
7
|
"types": "./dist/typescript/lib/index.d.ts",
|
|
8
|
+
"codegenConfig": {
|
|
9
|
+
"name": "RNFBAuthTurboModules",
|
|
10
|
+
"type": "modules",
|
|
11
|
+
"jsSrcsDir": "specs",
|
|
12
|
+
"includesGeneratedCode": true,
|
|
13
|
+
"android": {
|
|
14
|
+
"javaPackageName": "io.invertase.firebase.auth"
|
|
15
|
+
},
|
|
16
|
+
"ios": {
|
|
17
|
+
"modulesProvider": {
|
|
18
|
+
"NativeRNFBTurboAuth": "RNFBAuthModule"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
8
22
|
"scripts": {
|
|
9
23
|
"build": "genversion --esm --semi lib/version.ts",
|
|
10
24
|
"build:clean": "rimraf android/build && rimraf ios/build",
|
|
11
25
|
"build:plugin": "rimraf plugin/build && tsc --build plugin",
|
|
12
26
|
"compile": "bob build",
|
|
13
27
|
"lint:plugin": "eslint plugin/src/*",
|
|
14
|
-
"prepare": "yarn run build && yarn compile && yarn run build:plugin"
|
|
28
|
+
"prepare": "yarn run build && yarn compile && yarn run build:plugin",
|
|
29
|
+
"codegen": "yarn android:codegen && yarn ios:codegen",
|
|
30
|
+
"android:codegen": "npx @react-native-community/cli codegen --platform android --outputPath=./android/src/main/java/io/invertase/firebase/auth/generated",
|
|
31
|
+
"ios:codegen": "npx @react-native-community/cli codegen --platform ios --outputPath=./ios/generated"
|
|
15
32
|
},
|
|
16
33
|
"repository": {
|
|
17
34
|
"type": "git",
|
|
@@ -28,10 +45,11 @@
|
|
|
28
45
|
"plist": "^3.1.1"
|
|
29
46
|
},
|
|
30
47
|
"peerDependencies": {
|
|
31
|
-
"@react-native-firebase/app": "
|
|
48
|
+
"@react-native-firebase/app": "26.0.0",
|
|
32
49
|
"expo": ">=47.0.0"
|
|
33
50
|
},
|
|
34
51
|
"devDependencies": {
|
|
52
|
+
"@react-native-firebase/app": "26.0.0",
|
|
35
53
|
"@types/plist": "^3.0.5",
|
|
36
54
|
"expo": "^55.0.18",
|
|
37
55
|
"react-native-builder-bob": "^0.40.13"
|
|
@@ -51,6 +69,14 @@
|
|
|
51
69
|
"types": "./dist/typescript/lib/index.d.ts",
|
|
52
70
|
"default": "./dist/module/index.js"
|
|
53
71
|
},
|
|
72
|
+
"./app.plugin": {
|
|
73
|
+
"types": "./plugin/build/app.plugin.d.ts",
|
|
74
|
+
"default": "./app.plugin.js"
|
|
75
|
+
},
|
|
76
|
+
"./app.plugin.js": {
|
|
77
|
+
"types": "./plugin/build/app.plugin.d.ts",
|
|
78
|
+
"default": "./app.plugin.js"
|
|
79
|
+
},
|
|
54
80
|
"./package.json": "./package.json"
|
|
55
81
|
},
|
|
56
82
|
"react-native-builder-bob": {
|
|
@@ -75,5 +101,5 @@
|
|
|
75
101
|
"node_modules/",
|
|
76
102
|
"dist/"
|
|
77
103
|
],
|
|
78
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "2a360acb2aebdd39dd40e31be386b30697270626"
|
|
79
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/pluginConfig.ts","./src/ios/index.ts","./src/ios/openUrlFix.ts","./src/ios/urlTypes.ts"],"version":"6.0.3"}
|
|
1
|
+
{"root":["./src/app.plugin.ts","./src/index.ts","./src/pluginConfig.ts","./src/ios/index.ts","./src/ios/openUrlFix.ts","./src/ios/urlTypes.ts"],"version":"6.0.3"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-wrapper-object-types */
|
|
2
|
+
import type { TurboModule } from 'react-native';
|
|
3
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
4
|
+
|
|
5
|
+
export interface Spec extends TurboModule {
|
|
6
|
+
getConstants(): {
|
|
7
|
+
APP_LANGUAGE: Object;
|
|
8
|
+
APP_USER: Object;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
configureAuthDomain(appName: string): void;
|
|
12
|
+
getCustomAuthDomain(appName: string): Promise<string | null>;
|
|
13
|
+
addAuthStateListener(appName: string): void;
|
|
14
|
+
removeAuthStateListener(appName: string): void;
|
|
15
|
+
addIdTokenListener(appName: string): void;
|
|
16
|
+
removeIdTokenListener(appName: string): void;
|
|
17
|
+
forceRecaptchaFlowForTesting(appName: string, forceRecaptchaFlow: boolean): Promise<void>;
|
|
18
|
+
setAutoRetrievedSmsCodeForPhoneNumber(
|
|
19
|
+
appName: string,
|
|
20
|
+
phoneNumber: string,
|
|
21
|
+
smsCode: string,
|
|
22
|
+
): Promise<void>;
|
|
23
|
+
setAppVerificationDisabledForTesting(appName: string, disabled: boolean): Promise<void>;
|
|
24
|
+
useUserAccessGroup(appName: string, userAccessGroup: string): Promise<void>;
|
|
25
|
+
signOut(appName: string): Promise<void>;
|
|
26
|
+
signInAnonymously(appName: string): Promise<Object>;
|
|
27
|
+
createUserWithEmailAndPassword(appName: string, email: string, password: string): Promise<Object>;
|
|
28
|
+
isSignInWithEmailLink(appName: string, emailLink: string): boolean;
|
|
29
|
+
signInWithEmailAndPassword(appName: string, email: string, password: string): Promise<Object>;
|
|
30
|
+
signInWithEmailLink(appName: string, email: string, emailLink: string): Promise<Object>;
|
|
31
|
+
signInWithCustomToken(appName: string, token: string): Promise<Object>;
|
|
32
|
+
revokeToken(appName: string, authorizationCode: string): Promise<void>;
|
|
33
|
+
sendPasswordResetEmail(
|
|
34
|
+
appName: string,
|
|
35
|
+
email: string,
|
|
36
|
+
actionCodeSettings?: Object | null,
|
|
37
|
+
): Promise<void>;
|
|
38
|
+
sendSignInLinkToEmail(appName: string, email: string, actionCodeSettings: Object): Promise<void>;
|
|
39
|
+
deleteUser(appName: string): Promise<void>;
|
|
40
|
+
reload(appName: string): Promise<Object>;
|
|
41
|
+
sendEmailVerification(appName: string, actionCodeSettings?: Object | null): Promise<Object>;
|
|
42
|
+
verifyBeforeUpdateEmail(
|
|
43
|
+
appName: string,
|
|
44
|
+
email: string,
|
|
45
|
+
actionCodeSettings?: Object | null,
|
|
46
|
+
): Promise<Object>;
|
|
47
|
+
updateEmail(appName: string, email: string): Promise<Object>;
|
|
48
|
+
updatePassword(appName: string, password: string): Promise<Object>;
|
|
49
|
+
updatePhoneNumber(
|
|
50
|
+
appName: string,
|
|
51
|
+
provider: string,
|
|
52
|
+
authToken: string,
|
|
53
|
+
authSecret: string,
|
|
54
|
+
): Promise<Object>;
|
|
55
|
+
updateProfile(appName: string, props: Object): Promise<Object>;
|
|
56
|
+
getIdToken(appName: string, forceRefresh: boolean): Promise<string>;
|
|
57
|
+
getIdTokenResult(appName: string, forceRefresh: boolean): Promise<Object>;
|
|
58
|
+
signInWithCredential(
|
|
59
|
+
appName: string,
|
|
60
|
+
provider: string,
|
|
61
|
+
authToken: string,
|
|
62
|
+
authSecret: string,
|
|
63
|
+
): Promise<Object>;
|
|
64
|
+
signInWithProvider(appName: string, provider: Object): Promise<Object>;
|
|
65
|
+
signInWithPhoneNumber(
|
|
66
|
+
appName: string,
|
|
67
|
+
phoneNumber: string,
|
|
68
|
+
forceResend: boolean,
|
|
69
|
+
): Promise<Object>;
|
|
70
|
+
verifyPhoneNumberWithMultiFactorInfo(
|
|
71
|
+
appName: string,
|
|
72
|
+
hintUid: string,
|
|
73
|
+
sessionKey: string,
|
|
74
|
+
): Promise<string>;
|
|
75
|
+
verifyPhoneNumberForMultiFactor(
|
|
76
|
+
appName: string,
|
|
77
|
+
phoneNumber: string,
|
|
78
|
+
sessionKey: string,
|
|
79
|
+
): Promise<string>;
|
|
80
|
+
resolveMultiFactorSignIn(
|
|
81
|
+
appName: string,
|
|
82
|
+
session: string,
|
|
83
|
+
verificationId: string,
|
|
84
|
+
verificationCode: string,
|
|
85
|
+
): Promise<Object>;
|
|
86
|
+
resolveTotpSignIn(
|
|
87
|
+
appName: string,
|
|
88
|
+
sessionKey: string,
|
|
89
|
+
uid: string,
|
|
90
|
+
oneTimePassword: string,
|
|
91
|
+
): Promise<Object>;
|
|
92
|
+
generateTotpSecret(appName: string, sessionKey: string): Promise<Object>;
|
|
93
|
+
generateQrCodeUrl(appName: string, secretKey: string, account: string, issuer: string): string;
|
|
94
|
+
openInOtpApp(appName: string, secretKey: string, qrCodeUri: string): void;
|
|
95
|
+
getSession(appName: string): Promise<string>;
|
|
96
|
+
unenrollMultiFactor(appName: string, factorUID: string): Promise<void>;
|
|
97
|
+
finalizeMultiFactorEnrollment(
|
|
98
|
+
appName: string,
|
|
99
|
+
verificationId: string,
|
|
100
|
+
verificationCode: string,
|
|
101
|
+
displayName?: string | null,
|
|
102
|
+
): Promise<void>;
|
|
103
|
+
finalizeTotpEnrollment(
|
|
104
|
+
appName: string,
|
|
105
|
+
totpSecret: string,
|
|
106
|
+
verificationCode: string,
|
|
107
|
+
displayName?: string | null,
|
|
108
|
+
): Promise<void>;
|
|
109
|
+
confirmationResultConfirm(appName: string, verificationCode: string): Promise<Object>;
|
|
110
|
+
verifyPhoneNumber(
|
|
111
|
+
appName: string,
|
|
112
|
+
phoneNumber: string,
|
|
113
|
+
requestKey: string,
|
|
114
|
+
timeout: number,
|
|
115
|
+
forceResend: boolean,
|
|
116
|
+
): void;
|
|
117
|
+
confirmPasswordReset(appName: string, code: string, newPassword: string): Promise<void>;
|
|
118
|
+
applyActionCode(appName: string, code: string): Promise<Object | null>;
|
|
119
|
+
checkActionCode(appName: string, code: string): Promise<Object>;
|
|
120
|
+
linkWithCredential(
|
|
121
|
+
appName: string,
|
|
122
|
+
provider: string,
|
|
123
|
+
authToken: string,
|
|
124
|
+
authSecret: string,
|
|
125
|
+
): Promise<Object>;
|
|
126
|
+
linkWithProvider(appName: string, provider: Object): Promise<Object>;
|
|
127
|
+
unlink(appName: string, providerId: string): Promise<Object>;
|
|
128
|
+
reauthenticateWithCredential(
|
|
129
|
+
appName: string,
|
|
130
|
+
provider: string,
|
|
131
|
+
authToken: string,
|
|
132
|
+
authSecret: string,
|
|
133
|
+
): Promise<Object>;
|
|
134
|
+
reauthenticateWithProvider(appName: string, provider: Object): Promise<Object>;
|
|
135
|
+
fetchSignInMethodsForEmail(appName: string, email: string): Promise<Array<string>>;
|
|
136
|
+
setLanguageCode(appName: string, code: string | null): void;
|
|
137
|
+
setTenantId(appName: string, tenantId: string | null): Promise<void>;
|
|
138
|
+
useDeviceLanguage(appName: string): void;
|
|
139
|
+
verifyPasswordResetCode(appName: string, code: string): Promise<string>;
|
|
140
|
+
useEmulator(appName: string, host: string, port: number): void;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('NativeRNFBTurboAuth');
|