Skip to content

Commit

Permalink
Change README for custome claims examples
Browse files Browse the repository at this point in the history
  • Loading branch information
trchopan committed Feb 2, 2024
1 parent a3a3f5b commit 9486012
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -105,10 +105,18 @@ async fn main() {

## More complete example with Axum, SQLite and slqx

[examples/axum_sqlite.rs](https://github.com/trchopan/firebase-auth/tree/main/examples/axum_sqlite.rs)
[examples/axum-sqlite](https://github.com/trchopan/firebase-auth/tree/main/examples/axum-sqlite/src/main.rs)

This is more real world application with Firebase Authentication and SQLite as database.

## Using Custom Claims

[examples/actix-web-custom-claims](https://github.com/trchopan/firebase-auth/blob/main/examples/actix-custom-claims/src/main.rs)

[examples/axum-custom-claims](https://github.com/trchopan/firebase-auth/blob/main/examples/axum-custom-claims/src/main.rs)

Custom claims are provided as defined `FirebaseUser` struct and use actix or axum trait to implement the extraction from the request.

# How to call the endpoint with Bearer Token

## Obtain the Bearer token
Expand Down
2 changes: 1 addition & 1 deletion firebase-auth/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "firebase-auth"
version = "0.4.1"
version = "0.4.2"
authors = ["Chop Tr <m@chop.dev>"]
homepage = "https://github.com/trchopan/firebase-auth"
repository = "https://github.com/trchopan/firebase-auth.git"
Expand Down

0 comments on commit 9486012

Please sign in to comment.