Home > @firebase/auth > signInAnonymously
signInAnonymously() function
Asynchronously signs in as an anonymous user.
Signature:
export declare function signInAnonymously(auth: Auth): Promise<UserCredential>;
Parameters
Parameter | Type | Description |
---|---|---|
auth | Auth | The Auth instance. |
Returns:
Promise<UserCredential>
Description
If there is already an anonymous user signed in, that user will be returned; otherwise, a new anonymous user identity will be created and returned.