Skip to content

truongtrnghia/firebase-id-token-generator-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Firebase ID Token Generator - Python

Python script for generating Firebase ID and refresh tokens from a user ID (UID). Useful for testing & debugging.

ID tokens last for 1 hour (set by Firebase).

Setup

  1. Install firebase_admin: $ pip install --user python_firebase
  2. Fill out the configuration constants in get_firebase_id_token.py

Usage

As an import (returns a dict):

import firebase_token_generator

uid = "Firebase user id"
print firebase_token_generator.get_token(uid)

Command line (prints only the ID token):

$ python firebase_token_generator.py <UID>

About

Python script for generating Firebase ID tokens from user IDs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%