Configure multiple projects #6463
Replies: 2 comments 1 reply
-
Hi there! Secondary apps are supported for certain modules (https://rnfb-docs.netlify.app/app/usage#secondary-apps) and auth appears to be one of them. I'm not 100% sure of the interaction with app check though, as that does not appear to be one of the ones that supports multiple apps. It may be that you cannot turn on app check enforcing on the secondary app, I've never tried it. Does it work without app check integrated, as a test? |
Beta Was this translation helpful? Give feedback.
-
Hi @mikehardy! In AppDelegate.m, I've added:
In JS usage:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can I configure one app in one project as the default app and use a second app from another as a secondary app?
Currently, I've configured the second app from a different project, when I use it for authentication via the phone number, it works properly on the simulator, but totally the opposite when using an actual device to test, it throws out an error
on iOS:
[Error: [auth/invalid-app-credential] Invalid token.]
and on Android:
[Error: [auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ A safety_net_token was passed, but no matching SHA-256 was registered in the Firebase console. Please make sure that this application’s packageName/SHA256 pair is registered in the Firebase Console. ]]
Beta Was this translation helpful? Give feedback.
All reactions