Firebase Token Generator
is a simple application used to create custom tokens for existing users in your Firebase project
- Go
- 1.22.5 was the version used to build this application; you can download it here
- Firebase Project
- It's needed to have an existing Firebase project with users registered
- Create a new
.env
file by following the.env.example
- Replace the variable value with your Firebase credential
- Note: usually a Firebase credential is a JSON file; to make it work for this app, you need to convert it to a string and encode it to base64
Inside the root folder, type the following command
make run
You can generate new tokens by passing an user phone number
or email
-> make run
Type 1 for phone number, 2 for email: 2
Type the user email: [email protected]
Token: eyJhbaaG23ciOiJwSUzI1NiICJ9.eyJptZ2ktbI6Imh0MuY29tL2dvb2dsZS5pZGVv...
----------------------------------------------
Do you want to generate another token?
Type 1 for phone number, 2 for email: