Skip to content

[v3] sendEmailVerification is not supported #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghuh opened this issue Nov 7, 2016 · 3 comments
Closed

[v3] sendEmailVerification is not supported #114

ghuh opened this issue Nov 7, 2016 · 3 comments
Milestone

Comments

@ghuh
Copy link
Contributor

ghuh commented Nov 7, 2016

When a new email/password user is created, in order to verify their email, need to send a verification email. Firebase has built in support for this which needs to be exposed in firestack.

Android: https://firebase.google.com/docs/auth/android/manage-users#send_a_user_a_verification_email

iOS: https://firebase.google.com/docs/auth/ios/manage-users#send_a_user_a_verification_email

Web: https://firebase.google.com/docs/auth/web/manage-users#send_a_user_a_verification_email

@Salakar
Copy link
Collaborator

Salakar commented Nov 18, 2016

@ghuh this is implemented on my branch now (the soon to be v3) and you can also now access the current users email verification status by doing:

// all the below is exactly what you'd do with the web api

const user = firestack.auth().currentUser;

if (user) {
    if (!user.emailVerified) {
        console.warn(`User ${user.uid} is not verified`);
    }  else {
        // resend verification email? or w/e else you'd do in this scenario
        user.sendEmailVerification(); 
    }
} else {
    // not signed in
}

Feel free to give it ago - we'll be merging this in soon hopefully.

@ghuh
Copy link
Contributor Author

ghuh commented Nov 18, 2016

Thanks! I'll take a look.

@Salakar Salakar added this to the v3 milestone Nov 19, 2016
@Salakar Salakar changed the title sendEmailVerification is not supported [v3] sendEmailVerification is not supported Nov 19, 2016
@Salakar
Copy link
Collaborator

Salakar commented Nov 19, 2016

Closing as fixed on v3 branch.

@Salakar Salakar closed this as completed Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants