firebase_auth_admin_verify 1.0.0 copy "firebase_auth_admin_verify: ^1.0.0" to clipboard
firebase_auth_admin_verify: ^1.0.0 copied to clipboard

discontinuedreplaced by: openid_client

A Firebase auth JWT verification tool, conforming to the standards set up by Firebase itself.

example/firebase_auth_admin_verify_example.dart

import 'package:firebase_auth_admin_verify/firebase_auth_admin_verify.dart';

void main() {
  final token =
      'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.NHVaYe26MbtOYhSKkoKYdFVomg4i8ZJd8_-RU8VNbftc4TSMb4bXP3l3YlNWACwyXPGffz5aXHc6lty1Y2t4SWRqGteragsVdZufDn5BlnJl9pdR_kdVFUsra2rWKEofkZeIC4yWytE58sMIihvo9H1ScmmVwBcQP6XETqYd0aSHp1gOa9RdUPDvoXQ5oqygTqVtxaDr6wUFKrKItgBMzWIdNZ6y7O9E0DhEPTbE9rfBo6KTFsHAZnMg4k68CDp2woYIaXbmYTWcvbzIuHO7_37GT79XdIwkm95QJ7hYC9RiwrV7mesbY4PAahERJawntho0my942XheVLmGwLMBkQ';
  Future<FirebaseJWT?> verifyToken() async {
    try {
      return await verifyFirebaseToken(token, projectId: 'project-id');
    } on FirebaseVerifyException catch (e) {
      print(e.message);
    } catch (e) {
      print(e);
    }
    return null;
  }

  verifyToken();
}
copied to clipboard
4
likes
150
points
26
downloads

Publisher

verified publisherdbilgin.com

Weekly Downloads

2024.09.27 - 2025.04.11

A Firebase auth JWT verification tool, conforming to the standards set up by Firebase itself.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http, jose

More

Packages that depend on firebase_auth_admin_verify