Email-Password accounts

A provider that relies on collecting the user's email and password.

registration and hard-login

createUserWithEmailAndPassword(auth, email, password).then((credential) => {
    credential.user // User
})
signInWithEmailAndPassword(auth, email, password).then((credential) => {
    credential.user // User
})

send a password reset email

We ask Firebase to send a password-reset email to the provided email. We can customize the email content through the Firebase console:

sendPasswordResetEmail(auth, email)

email account's providerData (implementation detail)

Note: "password" is the providerId for the email-password provider.

{
    "providerData": [
        {
            "providerId": "password",
            "uid": "user@example.com",
            "email": "user@example.com",
            "displayName": null,
            "phoneNumber": null,
            "photoURL": null
        }
    ]
}
earlymorning logo

© Antoine Weber 2026 - All rights reserved

Email-Password accounts

A provider that relies on collecting the user's email and password.

registration and hard-login

createUserWithEmailAndPassword(auth, email, password).then((credential) => {
    credential.user // User
})
signInWithEmailAndPassword(auth, email, password).then((credential) => {
    credential.user // User
})

send a password reset email

We ask Firebase to send a password-reset email to the provided email. We can customize the email content through the Firebase console:

sendPasswordResetEmail(auth, email)

email account's providerData (implementation detail)

Note: "password" is the providerId for the email-password provider.

{
    "providerData": [
        {
            "providerId": "password",
            "uid": "user@example.com",
            "email": "user@example.com",
            "displayName": null,
            "phoneNumber": null,
            "photoURL": null
        }
    ]
}