Skip to content

[v3] sendEmailVerification is not supported #114

Closed

Description

@ghuh

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

Activity

  1. Salakar commented on Nov 18, 2016

    @Salakar
    Collaborator

    @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.

  2. ghuh commented on Nov 18, 2016

    @ghuh
    ContributorAuthor

    Thanks! I'll take a look.

  3. added this to the v3 milestone on Nov 19, 2016
  4. changed the title [-]sendEmailVerification is not supported[/-] [+][v3] sendEmailVerification is not supported[/+] on Nov 19, 2016
  5. Salakar commented on Nov 19, 2016

    @Salakar
    Collaborator

    Closing as fixed on v3 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions