firebase_verify_token 0.0.2 copy "firebase_verify_token: ^0.0.2" to clipboard
firebase_verify_token: ^0.0.2 copied to clipboard

discontinuedreplaced by: firebase_verify_token_dart

Plugin to verify a firebase jwt token

Firebase Verify Token #

A plugin that allows you to verify a Firebase JWT Token for a specific firebase project.

Pub Version Pub Likes Pub Likes Pub Likes GitHub license

Platform Support #

Android iOS MacOS Web Linux Windows
✔️ ✔️ ✔️ ✔️ ✔️ ✔️

About #

Token verification involves the following steps:

  • Check if the token was generated by the same project id.
  • Check if the token was generated by firebase authentication.
  • Check if the token has expired

Install #

Import the Check App Version package #

To use the Firebase Verify Token package, follow the plugin installation instructions.

Use the package #

Add the following import to your Dart code:

import 'package:firebase_verify_token/firebase_verify_token.dart';

Now we need to initialize the static variable projectId in the FirebaseVerifyToken class. You need to enter the firebase project ID.

FirebaseVerifyToken.projectId = '
my-project-id
';

At this point, we can call the verify method from the FirebaseVerifyToken class, passing the string token that we want to verify, as a parameter. The method will return TRUE if the token is valid, FALSE if it is not.

await
FirebaseVerifyToken.verify
('my-token-string
'
);
1
likes
0
points
39
downloads

Publisher

verified publisherenzodesimone.dev

Weekly Downloads

Plugin to verify a firebase jwt token

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, jose, very_good_analysis

More

Packages that depend on firebase_verify_token