{"version":"1.0","type":"rich","title":"firebasecustomTokenClient","description":"This example shows how to authenticate a Firebase user with a custom token obtained from a backend endpoint. It demonstrates a client-side authentication flow where an Auth0 token from localStorage is sent as an Authorization header via Axios to a custom backend path, which returns a Firebase custom token. The code then uses `firebase.auth().signInWithCustomToken()` to sign in the user with that token, initializing Firebase with environment variables for its configuration. The example highlights the integration of Firebase Authentication with a custom backend service using Axios for HTTP requests.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-c78dd0907961ad3810a1728853addf54?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}