firebase_verify_id_tokens 1.0.0 firebase_verify_id_tokens: ^1.0.0 copied to clipboard
A package that helps you verify JWT token IDs from firebase logged-in users
This package verifies that a Firebase token ID is valid and gives you the UID of the user.
Features #
- verify Firebase token ID
- extract user's UID from token
Getting started #
All you need to known is the firebase project id that your users are logging into.
Usage #
final firebaseTokenVerifier = FirebaseVerifyTokenId('firebase_project_id');
final uid = await firebaseTokenVerifier.getUidFromToken('JWT_token');
print('Hello user $uid');
Additional information #
The method of verifying the token is based on the method described in the Firebase documentation here.