Anonymous account

register as anonymous

signInAnonymously(auth)

check if the account is anonymous

the account is anonymous if there is no provider data:

const isAnonymous = auth.currentUser?.providerData.length === 0

convert to an email account

we build an email credential and add it to the account.

const credential = EmailAuthProvider.credential(email, password)
linkWithCredential(auth.currentUser, credential)
earlymorning logo

© 2025 - All rights reserved

Anonymous account

register as anonymous

signInAnonymously(auth)

check if the account is anonymous

the account is anonymous if there is no provider data:

const isAnonymous = auth.currentUser?.providerData.length === 0

convert to an email account

we build an email credential and add it to the account.

const credential = EmailAuthProvider.credential(email, password)
linkWithCredential(auth.currentUser, credential)