#firebase #token #validate

firebase-token

A firebase ID token validator written in Rust

5 releases

0.3.0 Jan 11, 2023
0.2.3 Jan 11, 2023
0.2.2 Nov 4, 2022
0.2.1 Nov 4, 2022
0.2.0 Nov 4, 2022

#31 in #firebase

MIT license

20KB
510 lines

firebase-token

About

Validate firabase ID token written in Rust

Crates.io

API Docs

Installation

Add the following to Cargo.toml:

[dependencies]
firebase-token = "0.3"
use firebase_token::JwkAuth;

let jwk_auth = JwkAuth::new(FIREBASE_PROJECT_ID).await;
let token_claim = jwk_auth.verify(id_token).await;

License

MIT

Dependencies

~11–24MB
~459K SLoC