@react-native-firebase/auth 25.1.0 → 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 +24 -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/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/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/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/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/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/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/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 +27 -38
- package/lib/getMultiFactorResolver.ts +9 -11
- package/lib/index.ts +1836 -6
- package/lib/internal/syncNativeError.ts +89 -0
- package/lib/multiFactor.ts +25 -16
- package/lib/providers/PhoneAuthProvider.ts +9 -22
- package/lib/types/auth.ts +15 -0
- package/lib/types/internal.ts +54 -63
- package/lib/version.ts +1 -1
- package/lib/web/RNFBAuthModule.ts +13 -10
- package/package.json +30 -5
- 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 -1166
- package/lib/namespaced.ts +0 -849
- package/lib/types/namespaced.ts +0 -2350
package/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthPackage.java
CHANGED
|
@@ -32,7 +32,7 @@ public class ReactNativeFirebaseAuthPackage implements ReactPackage {
|
|
|
32
32
|
@Override
|
|
33
33
|
public List<NativeModule> createNativeModules(@Nonnull ReactApplicationContext reactContext) {
|
|
34
34
|
List<NativeModule> modules = new ArrayList<>();
|
|
35
|
-
modules.add(new
|
|
35
|
+
modules.add(new NativeRNFBTurboAuth(reactContext));
|
|
36
36
|
return modules;
|
|
37
37
|
}
|
|
38
38
|
|
package/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthSyncException.java
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
package io.invertase.firebase.auth;
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this library except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Structured sync TurboModule error carrying the same RNFB {@code code}/{@code message} pair used
|
|
22
|
+
* by {@code rejectPromiseWithCodeAndMessage}.
|
|
23
|
+
*/
|
|
24
|
+
public class ReactNativeFirebaseAuthSyncException extends RuntimeException {
|
|
25
|
+
private final String code;
|
|
26
|
+
|
|
27
|
+
public ReactNativeFirebaseAuthSyncException(String code, String message) {
|
|
28
|
+
super(message);
|
|
29
|
+
this.code = code;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public String getCode() {
|
|
33
|
+
return code;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
21
|
+
import com.facebook.react.common.build.ReactBuildConfig;
|
|
22
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
23
|
+
import java.util.Arrays;
|
|
24
|
+
import java.util.HashSet;
|
|
25
|
+
import java.util.Map;
|
|
26
|
+
import java.util.Set;
|
|
27
|
+
import javax.annotation.Nonnull;
|
|
28
|
+
import javax.annotation.Nullable;
|
|
29
|
+
|
|
30
|
+
public abstract class NativeRNFBTurboAuthSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
31
|
+
public static final String NAME = "NativeRNFBTurboAuth";
|
|
32
|
+
|
|
33
|
+
public NativeRNFBTurboAuthSpec(ReactApplicationContext reactContext) {
|
|
34
|
+
super(reactContext);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@Override
|
|
38
|
+
public @Nonnull String getName() {
|
|
39
|
+
return NAME;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
protected abstract Map<String, Object> getTypedExportedConstants();
|
|
43
|
+
|
|
44
|
+
@Override
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
public final @Nullable Map<String, Object> getConstants() {
|
|
47
|
+
Map<String, Object> constants = getTypedExportedConstants();
|
|
48
|
+
if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
|
|
49
|
+
Set<String> obligatoryFlowConstants = new HashSet<>(Arrays.asList(
|
|
50
|
+
"APP_LANGUAGE",
|
|
51
|
+
"APP_USER"
|
|
52
|
+
));
|
|
53
|
+
Set<String> optionalFlowConstants = new HashSet<>();
|
|
54
|
+
Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
|
|
55
|
+
undeclaredConstants.removeAll(obligatoryFlowConstants);
|
|
56
|
+
undeclaredConstants.removeAll(optionalFlowConstants);
|
|
57
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
58
|
+
throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", undeclaredConstants));
|
|
59
|
+
}
|
|
60
|
+
undeclaredConstants = obligatoryFlowConstants;
|
|
61
|
+
undeclaredConstants.removeAll(constants.keySet());
|
|
62
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
63
|
+
throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", undeclaredConstants));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return constants;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@ReactMethod
|
|
70
|
+
@DoNotStrip
|
|
71
|
+
public abstract void configureAuthDomain(String appName);
|
|
72
|
+
|
|
73
|
+
@ReactMethod
|
|
74
|
+
@DoNotStrip
|
|
75
|
+
public abstract void getCustomAuthDomain(String appName, Promise promise);
|
|
76
|
+
|
|
77
|
+
@ReactMethod
|
|
78
|
+
@DoNotStrip
|
|
79
|
+
public abstract void addAuthStateListener(String appName);
|
|
80
|
+
|
|
81
|
+
@ReactMethod
|
|
82
|
+
@DoNotStrip
|
|
83
|
+
public abstract void removeAuthStateListener(String appName);
|
|
84
|
+
|
|
85
|
+
@ReactMethod
|
|
86
|
+
@DoNotStrip
|
|
87
|
+
public abstract void addIdTokenListener(String appName);
|
|
88
|
+
|
|
89
|
+
@ReactMethod
|
|
90
|
+
@DoNotStrip
|
|
91
|
+
public abstract void removeIdTokenListener(String appName);
|
|
92
|
+
|
|
93
|
+
@ReactMethod
|
|
94
|
+
@DoNotStrip
|
|
95
|
+
public abstract void forceRecaptchaFlowForTesting(String appName, boolean forceRecaptchaFlow, Promise promise);
|
|
96
|
+
|
|
97
|
+
@ReactMethod
|
|
98
|
+
@DoNotStrip
|
|
99
|
+
public abstract void setAutoRetrievedSmsCodeForPhoneNumber(String appName, String phoneNumber, String smsCode, Promise promise);
|
|
100
|
+
|
|
101
|
+
@ReactMethod
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
public abstract void setAppVerificationDisabledForTesting(String appName, boolean disabled, Promise promise);
|
|
104
|
+
|
|
105
|
+
@ReactMethod
|
|
106
|
+
@DoNotStrip
|
|
107
|
+
public abstract void useUserAccessGroup(String appName, String userAccessGroup, Promise promise);
|
|
108
|
+
|
|
109
|
+
@ReactMethod
|
|
110
|
+
@DoNotStrip
|
|
111
|
+
public abstract void signOut(String appName, Promise promise);
|
|
112
|
+
|
|
113
|
+
@ReactMethod
|
|
114
|
+
@DoNotStrip
|
|
115
|
+
public abstract void signInAnonymously(String appName, Promise promise);
|
|
116
|
+
|
|
117
|
+
@ReactMethod
|
|
118
|
+
@DoNotStrip
|
|
119
|
+
public abstract void createUserWithEmailAndPassword(String appName, String email, String password, Promise promise);
|
|
120
|
+
|
|
121
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
122
|
+
@DoNotStrip
|
|
123
|
+
public abstract boolean isSignInWithEmailLink(String appName, String emailLink);
|
|
124
|
+
|
|
125
|
+
@ReactMethod
|
|
126
|
+
@DoNotStrip
|
|
127
|
+
public abstract void signInWithEmailAndPassword(String appName, String email, String password, Promise promise);
|
|
128
|
+
|
|
129
|
+
@ReactMethod
|
|
130
|
+
@DoNotStrip
|
|
131
|
+
public abstract void signInWithEmailLink(String appName, String email, String emailLink, Promise promise);
|
|
132
|
+
|
|
133
|
+
@ReactMethod
|
|
134
|
+
@DoNotStrip
|
|
135
|
+
public abstract void signInWithCustomToken(String appName, String token, Promise promise);
|
|
136
|
+
|
|
137
|
+
@ReactMethod
|
|
138
|
+
@DoNotStrip
|
|
139
|
+
public abstract void revokeToken(String appName, String authorizationCode, Promise promise);
|
|
140
|
+
|
|
141
|
+
@ReactMethod
|
|
142
|
+
@DoNotStrip
|
|
143
|
+
public abstract void sendPasswordResetEmail(String appName, String email, @Nullable ReadableMap actionCodeSettings, Promise promise);
|
|
144
|
+
|
|
145
|
+
@ReactMethod
|
|
146
|
+
@DoNotStrip
|
|
147
|
+
public abstract void sendSignInLinkToEmail(String appName, String email, ReadableMap actionCodeSettings, Promise promise);
|
|
148
|
+
|
|
149
|
+
@ReactMethod
|
|
150
|
+
@DoNotStrip
|
|
151
|
+
public abstract void deleteUser(String appName, Promise promise);
|
|
152
|
+
|
|
153
|
+
@ReactMethod
|
|
154
|
+
@DoNotStrip
|
|
155
|
+
public abstract void reload(String appName, Promise promise);
|
|
156
|
+
|
|
157
|
+
@ReactMethod
|
|
158
|
+
@DoNotStrip
|
|
159
|
+
public abstract void sendEmailVerification(String appName, @Nullable ReadableMap actionCodeSettings, Promise promise);
|
|
160
|
+
|
|
161
|
+
@ReactMethod
|
|
162
|
+
@DoNotStrip
|
|
163
|
+
public abstract void verifyBeforeUpdateEmail(String appName, String email, @Nullable ReadableMap actionCodeSettings, Promise promise);
|
|
164
|
+
|
|
165
|
+
@ReactMethod
|
|
166
|
+
@DoNotStrip
|
|
167
|
+
public abstract void updateEmail(String appName, String email, Promise promise);
|
|
168
|
+
|
|
169
|
+
@ReactMethod
|
|
170
|
+
@DoNotStrip
|
|
171
|
+
public abstract void updatePassword(String appName, String password, Promise promise);
|
|
172
|
+
|
|
173
|
+
@ReactMethod
|
|
174
|
+
@DoNotStrip
|
|
175
|
+
public abstract void updatePhoneNumber(String appName, String provider, String authToken, String authSecret, Promise promise);
|
|
176
|
+
|
|
177
|
+
@ReactMethod
|
|
178
|
+
@DoNotStrip
|
|
179
|
+
public abstract void updateProfile(String appName, ReadableMap props, Promise promise);
|
|
180
|
+
|
|
181
|
+
@ReactMethod
|
|
182
|
+
@DoNotStrip
|
|
183
|
+
public abstract void getIdToken(String appName, boolean forceRefresh, Promise promise);
|
|
184
|
+
|
|
185
|
+
@ReactMethod
|
|
186
|
+
@DoNotStrip
|
|
187
|
+
public abstract void getIdTokenResult(String appName, boolean forceRefresh, Promise promise);
|
|
188
|
+
|
|
189
|
+
@ReactMethod
|
|
190
|
+
@DoNotStrip
|
|
191
|
+
public abstract void signInWithCredential(String appName, String provider, String authToken, String authSecret, Promise promise);
|
|
192
|
+
|
|
193
|
+
@ReactMethod
|
|
194
|
+
@DoNotStrip
|
|
195
|
+
public abstract void signInWithProvider(String appName, ReadableMap provider, Promise promise);
|
|
196
|
+
|
|
197
|
+
@ReactMethod
|
|
198
|
+
@DoNotStrip
|
|
199
|
+
public abstract void signInWithPhoneNumber(String appName, String phoneNumber, boolean forceResend, Promise promise);
|
|
200
|
+
|
|
201
|
+
@ReactMethod
|
|
202
|
+
@DoNotStrip
|
|
203
|
+
public abstract void verifyPhoneNumberWithMultiFactorInfo(String appName, String hintUid, String sessionKey, Promise promise);
|
|
204
|
+
|
|
205
|
+
@ReactMethod
|
|
206
|
+
@DoNotStrip
|
|
207
|
+
public abstract void verifyPhoneNumberForMultiFactor(String appName, String phoneNumber, String sessionKey, Promise promise);
|
|
208
|
+
|
|
209
|
+
@ReactMethod
|
|
210
|
+
@DoNotStrip
|
|
211
|
+
public abstract void resolveMultiFactorSignIn(String appName, String session, String verificationId, String verificationCode, Promise promise);
|
|
212
|
+
|
|
213
|
+
@ReactMethod
|
|
214
|
+
@DoNotStrip
|
|
215
|
+
public abstract void resolveTotpSignIn(String appName, String sessionKey, String uid, String oneTimePassword, Promise promise);
|
|
216
|
+
|
|
217
|
+
@ReactMethod
|
|
218
|
+
@DoNotStrip
|
|
219
|
+
public abstract void generateTotpSecret(String appName, String sessionKey, Promise promise);
|
|
220
|
+
|
|
221
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
222
|
+
@DoNotStrip
|
|
223
|
+
public abstract String generateQrCodeUrl(String appName, String secretKey, String account, String issuer);
|
|
224
|
+
|
|
225
|
+
@ReactMethod
|
|
226
|
+
@DoNotStrip
|
|
227
|
+
public abstract void openInOtpApp(String appName, String secretKey, String qrCodeUri);
|
|
228
|
+
|
|
229
|
+
@ReactMethod
|
|
230
|
+
@DoNotStrip
|
|
231
|
+
public abstract void getSession(String appName, Promise promise);
|
|
232
|
+
|
|
233
|
+
@ReactMethod
|
|
234
|
+
@DoNotStrip
|
|
235
|
+
public abstract void unenrollMultiFactor(String appName, String factorUID, Promise promise);
|
|
236
|
+
|
|
237
|
+
@ReactMethod
|
|
238
|
+
@DoNotStrip
|
|
239
|
+
public abstract void finalizeMultiFactorEnrollment(String appName, String verificationId, String verificationCode, @Nullable String displayName, Promise promise);
|
|
240
|
+
|
|
241
|
+
@ReactMethod
|
|
242
|
+
@DoNotStrip
|
|
243
|
+
public abstract void finalizeTotpEnrollment(String appName, String totpSecret, String verificationCode, @Nullable String displayName, Promise promise);
|
|
244
|
+
|
|
245
|
+
@ReactMethod
|
|
246
|
+
@DoNotStrip
|
|
247
|
+
public abstract void confirmationResultConfirm(String appName, String verificationCode, Promise promise);
|
|
248
|
+
|
|
249
|
+
@ReactMethod
|
|
250
|
+
@DoNotStrip
|
|
251
|
+
public abstract void verifyPhoneNumber(String appName, String phoneNumber, String requestKey, double timeout, boolean forceResend);
|
|
252
|
+
|
|
253
|
+
@ReactMethod
|
|
254
|
+
@DoNotStrip
|
|
255
|
+
public abstract void confirmPasswordReset(String appName, String code, String newPassword, Promise promise);
|
|
256
|
+
|
|
257
|
+
@ReactMethod
|
|
258
|
+
@DoNotStrip
|
|
259
|
+
public abstract void applyActionCode(String appName, String code, Promise promise);
|
|
260
|
+
|
|
261
|
+
@ReactMethod
|
|
262
|
+
@DoNotStrip
|
|
263
|
+
public abstract void checkActionCode(String appName, String code, Promise promise);
|
|
264
|
+
|
|
265
|
+
@ReactMethod
|
|
266
|
+
@DoNotStrip
|
|
267
|
+
public abstract void linkWithCredential(String appName, String provider, String authToken, String authSecret, Promise promise);
|
|
268
|
+
|
|
269
|
+
@ReactMethod
|
|
270
|
+
@DoNotStrip
|
|
271
|
+
public abstract void linkWithProvider(String appName, ReadableMap provider, Promise promise);
|
|
272
|
+
|
|
273
|
+
@ReactMethod
|
|
274
|
+
@DoNotStrip
|
|
275
|
+
public abstract void unlink(String appName, String providerId, Promise promise);
|
|
276
|
+
|
|
277
|
+
@ReactMethod
|
|
278
|
+
@DoNotStrip
|
|
279
|
+
public abstract void reauthenticateWithCredential(String appName, String provider, String authToken, String authSecret, Promise promise);
|
|
280
|
+
|
|
281
|
+
@ReactMethod
|
|
282
|
+
@DoNotStrip
|
|
283
|
+
public abstract void reauthenticateWithProvider(String appName, ReadableMap provider, Promise promise);
|
|
284
|
+
|
|
285
|
+
@ReactMethod
|
|
286
|
+
@DoNotStrip
|
|
287
|
+
public abstract void fetchSignInMethodsForEmail(String appName, String email, Promise promise);
|
|
288
|
+
|
|
289
|
+
@ReactMethod
|
|
290
|
+
@DoNotStrip
|
|
291
|
+
public abstract void setLanguageCode(String appName, @Nullable String code);
|
|
292
|
+
|
|
293
|
+
@ReactMethod
|
|
294
|
+
@DoNotStrip
|
|
295
|
+
public abstract void setTenantId(String appName, @Nullable String tenantId, Promise promise);
|
|
296
|
+
|
|
297
|
+
@ReactMethod
|
|
298
|
+
@DoNotStrip
|
|
299
|
+
public abstract void useDeviceLanguage(String appName);
|
|
300
|
+
|
|
301
|
+
@ReactMethod
|
|
302
|
+
@DoNotStrip
|
|
303
|
+
public abstract void verifyPasswordResetCode(String appName, String code, Promise promise);
|
|
304
|
+
|
|
305
|
+
@ReactMethod
|
|
306
|
+
@DoNotStrip
|
|
307
|
+
public abstract void useEmulator(String appName, String host, double port);
|
|
308
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
cmake_minimum_required(VERSION 3.13)
|
|
7
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
8
|
+
|
|
9
|
+
file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNFBAuthTurboModules/*.cpp)
|
|
10
|
+
|
|
11
|
+
add_library(
|
|
12
|
+
react_codegen_RNFBAuthTurboModules
|
|
13
|
+
OBJECT
|
|
14
|
+
${react_codegen_SRCS}
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
target_include_directories(react_codegen_RNFBAuthTurboModules PUBLIC . react/renderer/components/RNFBAuthTurboModules)
|
|
18
|
+
|
|
19
|
+
target_link_libraries(
|
|
20
|
+
react_codegen_RNFBAuthTurboModules
|
|
21
|
+
fbjni
|
|
22
|
+
jsi
|
|
23
|
+
# We need to link different libraries based on whether we are building rncore or not, that's necessary
|
|
24
|
+
# because we want to break a circular dependency between react_codegen_rncore and reactnative
|
|
25
|
+
reactnative
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
target_compile_options(
|
|
29
|
+
react_codegen_RNFBAuthTurboModules
|
|
30
|
+
PRIVATE
|
|
31
|
+
-DLOG_TAG=\"ReactNative\"
|
|
32
|
+
-fexceptions
|
|
33
|
+
-frtti
|
|
34
|
+
-std=c++20
|
|
35
|
+
-Wall
|
|
36
|
+
)
|