firebase_auth_token 1.0.6 copy "firebase_auth_token: ^1.0.6" to clipboard
firebase_auth_token: ^1.0.6 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);
}
4
likes
140
pub points
73%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, jose, synchronized

More

Packages that depend on firebase_auth_token