UNPKG

voluptasmollitia

Version:
29 lines (16 loc) 789 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [signInAnonymously](./auth.signinanonymously.md) ## signInAnonymously() function Asynchronously signs in as an anonymous user. <b>Signature:</b> ```typescript export declare function signInAnonymously(auth: Auth): Promise<UserCredential>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | auth | [Auth](./auth.auth.md) | The Auth instance. | <b>Returns:</b> Promise&lt;[UserCredential](./auth.usercredential.md)<!-- -->&gt; ## Remarks 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.