Replies: 2 comments 3 replies
-
I think the React Native Firebase SDK needs to be updated to support Somethink like this
https://firebase.google.com/docs/auth/web/email-link-auth EDIT: or maybe we need to run the admin change command, and it will work magically? |
Beta Was this translation helpful? Give feedback.
-
I had the same problem, I ran this node script on my Firebase hosting domain with firebase admin installed: const admin = require("firebase-admin");
const serviceAccount = require("./service-account-key.json");
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
projectId: '[YOUR_PROJECT_ID]',
});
const updateRequest = {
mobileLinksConfig: {
domain: 'HOSTING_DOMAIN' // Litterally HOSTING_DOMAIN has to be written to make the changes to firebase hosting method
// Write FIREBASE_DYNAMIC_LINK_DOMAIN to revert to dynamic links
}
};
const updateProjectConfig = async () => {
try {
const auth = admin.auth();
const projectConfigManager = auth.projectConfigManager();
const response = await projectConfigManager.updateProjectConfig(updateRequest);
console.log(response);
} catch (error) {
console.error(error);
}
};
updateProjectConfig(); Launched, built and deployed it with this command:
And now no more dynamic links through the emails BUT the universal/app links are not working because Firebase sends a 'sendGrid' link through the email which redirects to the right url, but with universal/app links redirecting to app only when a compatible url is pressed (not through a navigator redirection), it does not work for me, idk what we are intended to do. Anyone has this problem ? A solution ? EDIT: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using Firebase Authentication's sendSignInLinkToEmail method in my Expo React Native application like this:
I've learned that Firebase Dynamic Links, which powers the email sign-in link functionality, will be discontinued. What's the recommended approach to migrate away from this method in an Expo React Native app?
Specifically:
My project uses:
Any guidance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions