Skip to content

5.1.0 - Add support for Firebase Authentication

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 21 Oct 14:20
· 3 commits to main since this release
8ce7280

What's Changed

Add support for Firebase Authentication by @petrpavlik in #160

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
// ...
This patch was released by @ptoffy

Full Changelog: 5.0.0...5.1.0