firebase_auth_token 1.0.8 copy "firebase_auth_token: ^1.0.8" to clipboard
firebase_auth_token: ^1.0.8 copied to clipboard

Extract user from verified Firebase Auth id token. The Firebase public key is cached and updated automatically.

example/lib/main.dart

import 'package:firebase_auth_token/firebase_auth_token.dart';

void main() async {
  final fat = FirebaseAuthToken(projectId: 'example');
  final authenticatedUser = await fat.getUserFromToken('token');
  // ignore: avoid_print
  print(authenticatedUser);
}
5
likes
160
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

Extract user from verified Firebase Auth id token. The Firebase public key is cached and updated automatically.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http, jose, synchronized

More

Packages that depend on firebase_auth_token