Introduction
Sometimes you want to let users sign in to your app using your own system instead of the usual email or social login. Custom Authentication Tokens let you create special login tokens that Firebase accepts, so users can access your app securely with your own user IDs.
When you have your own user database and want to let those users sign in to Firebase services.
When you want to add extra information to user login tokens for your app's special needs.
When you want to control exactly who can sign in and what their ID is in Firebase.
When you want to integrate Firebase authentication with an existing login system.
When you want to create temporary login tokens for users without passwords.