Skip to content

Commit

Permalink
update guide for jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenguyen committed Apr 15, 2023
1 parent 2216bc6 commit a8d2dbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/extensions/jwt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ This example uses JavaScript. However you can implement it by using the same pri
const generateToken = () => {
// Get the token from firebase
// In case you want to trigger functions for different region
// you can try this
//
// const functions = firebase.app().functions('europe-west2')
// const token = functions.httpsCallable('users-getCustomToken')
//
const token = firebase.functions().httpsCallable('users-getCustomToken')
token().then((result) => {
if (result.data.status) {
Expand Down

0 comments on commit a8d2dbf

Please sign in to comment.