Appearance
createCustomToken()
createCustomToken(
uid,developerClaims?):Promise<string>
Defined in: CloudFireAuth.ts:121
Creates a new Firebase custom token (JWT) that can be sent back to a client device to use to sign in with the client SDKs' signInWithCustomToken() methods. (Tenant-aware instances will also embed the tenant ID in the token.)
See Create Custom Tokens for code samples and detailed documentation.
Parameters
uid
string
The uid to use as the custom token's subject.
developerClaims?
object
Optional additional claims to include in the custom token's payload.
Returns
Promise<string>
A promise fulfilled with a custom token for the provided uid and payload.