React Native Firebase
    Preparing search index...

    Email and password auth provider implementation.

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

    Properties

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

    Returns the auth provider credential.

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

    Type Declaration

    credentialWithLink: (
        email: string,
        emailLink: string,
    ) => FirebaseAuthTypes.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_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.