Created
August 4, 2021 23:06
-
-
Save hiranya911/8cdd50931da7b7fc6fa6e5ad34c2a8b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { getToken } = require('firebase/app-check'); | |
const appCheckTokenResponse = await getToken(appCheck); | |
await fetch('https://api.myserver.com/quotes', { | |
headers: { | |
'X-Firebase-AppCheck': appCheckTokenResponse.token, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment