Skip to main content
100%

firebaseCustomToken.js

✓ Published0🌍 Public
Aandresmijares
Last edited Apr 28, 2019
Created on Apr 28, 2019

This example demonstrates how to generate a Firebase custom authentication token by decoding an incoming JSON Web Token. The code uses the `firebase-admin` SDK to create the token and the `jwt-decode` library to extract the `sub` claim from the JWT’s Authorization header. It shows a serverless Lambda function that returns the generated custom token as a JSON response, highlighting the integration between an external JWT provider and Firebase Authentication. The rendering approach is purely computational, with no visual output.

AI-generated description

Similar vizzes