Firebase JWT Auth Policy
Authenticate requests with JWT tokens issued by Firebase. The payload of the JWT
token, if successfully authenticated, with be on the request.user.data
object
accessible to the runtime.
See this document for more information about OAuth authorization in Zuplo.
Configuration
{
"name": "my-firebase-jwt-inbound-policy",
"policyType": "firebase-jwt-inbound",
"handler": {
"export": "FirebaseJwtInboundPolicy",
"module": "$import(@zuplo/runtime)",
"options": {
"projectId": "YOUR_PROJECT_ID",
"allowUnauthenticatedRequests": false
}
}
}
Read more about how policies work