createCustomToken method

Future<String> createCustomToken(
  1. String uid, {
  2. Map<String, Object?>? developerClaims,
})
inherited

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 https://firebase.google.com/docs/auth/admin/create-custom-tokens for code samples and detailed documentation.

Implementation

Future<String> createCustomToken(
  String uid, {
  Map<String, Object?>? developerClaims,
}) {
  return _tokenGenerator.createCustomToken(
    uid,
    developerClaims: developerClaims,
  );
}