React Native Firebase
    Preparing search index...

    Email and password auth provider implementation.

    interface EmailAuthProvider {
        credential: (email: string, password: string) => AuthCredential;
        credentialWithLink: (email: string, emailLink: string) => AuthCredential;
        EMAIL_LINK_SIGN_IN_METHOD: string;
        EMAIL_PASSWORD_SIGN_IN_METHOD: string;
        PROVIDER_ID: string;
    }
    Index

    Properties

    credential: (email: string, password: string) => AuthCredential

    Returns the auth provider credential.

    const authCredential = firebase.auth.EmailAuthProvider.credential('[email protected]', '123456');
    

    Type Declaration

    credentialWithLink: (email: string, emailLink: string) => AuthCredential

    Initialize an EmailAuthProvider credential using an email and an email link after a sign in with email link operation.

    const authCredential = firebase.auth.EmailAuthProvider.credentialWithLink('[email protected]', 'https://myexample.com/invite');
    

    Type Declaration

      • (email: string, emailLink: string): AuthCredential
      • Parameters

        • email: string

          Users email address.

        • emailLink: string

          Sign-in email link.

        Returns AuthCredential

    EMAIL_LINK_SIGN_IN_METHOD: string

    This corresponds to the sign-in method identifier as returned in fetchSignInMethodsForEmail.

    const signInMethods = await firebase.auth().fetchSignInMethodsForEmail('...');
    if (signInMethods.indexOf(firebase.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD) != -1) {
    // User can sign in with email/link
    }
    EMAIL_PASSWORD_SIGN_IN_METHOD: string

    This corresponds to the sign-in method identifier as returned in fetchSignInMethodsForEmail.

    const signInMethods = await firebase.auth().fetchSignInMethodsForEmail('...');
    if (signInMethods.indexOf(firebase.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD) != -1) {
    // User can sign in with email/password
    }
    PROVIDER_ID: string

    The provider ID. Always returns password.