firebase_auth_token 1.0.9 copy "firebase_auth_token: ^1.0.9" to clipboard
firebase_auth_token: ^1.0.9 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
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, jose, synchronized

More

Packages that depend on firebase_auth_token