Replies: 1 comment
-
This is an example from the Capacitor Firebase Authentication plugin: import { FirebaseAuthentication } from '@capacitor-firebase/authentication';
const sendSignInLinkToEmail = async () => {
const email = '[email protected]';
await FirebaseAuthentication.sendSignInLinkToEmail({
email,
actionCodeSettings: {
// URL you want to redirect back to. The domain (www.example.com) for this
// URL must be in the authorized domains list in the Firebase Console.
url: 'https://www.example.com/finishSignUp?cartId=1234',
// This must be true.
handleCodeInApp: true,
iOS: {
bundleId: 'com.example.ios',
},
android: {
packageName: 'com.example.android',
installApp: true,
minimumVersion: '12',
},
dynamicLinkDomain: 'example.page.link',
},
});
// The link was successfully sent. Inform the user.
// Save the email locally so you don't need to ask the user for it again
// if they open the link on the same device.
window.localStorage.setItem('emailForSignIn', email);
}; Here you can find the setup guide: https://github.com/capawesome-team/capacitor-firebase/blob/main/packages/authentication/docs/setup-email-link.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the question: How can I send email OTP using Ionic and Firebase in an Android app? Like many others here, I want to create a system where an OTP is sent when a on the frontend. I've searched everywhere for a solution.
I'm using Ionic with Angular and the Capacitor plugin for this
#ionic7 #firebase #email #otp
Beta Was this translation helpful? Give feedback.
All reactions