Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Firebase Authentication #160

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

petrpavlik
Copy link

Add support for decoding Firebase Authentication JWT tokens.

  1. Provide project id when configuring your Vapor application
app.jwt.firebaseAuth.applicationIdentifier = firebaseProjectId
  1. Verify the token on a request
let token = try await req.jwt.firebaseAuth.verify()
let email = token.email
let name = token.name
let avatarUrl = token.avatarUrl
// ...

@petrpavlik
Copy link
Author

@ptoffy this is the follow up PR to add firebase auth

@ptoffy ptoffy added the semver-minor Contains new APIs label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants