Generate Custom Token
Use the generateCustomToken method to generate a custom authentication token that can be used to sign a user into the Firebase application.
Method
final customToken = await FirebaseApp.firebaseAuth?.generateCustomToken(userId);Parameters
userId (
String): The unique user ID for which the custom token is to be generated.
Return
String: Returns a custom authentication token (
customToken) that can be used for signing in.
This method generates a custom authentication token for a specified user, which can then be used to authenticate and sign in the user to the Firebase application.
Last updated