{"version":"1.0","type":"rich","title":"firebaseCustomToken.js","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-31b3fc192bd6620b27877f11a33b43e7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}