Skip to content

Instantly share code, notes, and snippets.

@hiranya911
Created August 4, 2021 23:06
Show Gist options
  • Save hiranya911/8cdd50931da7b7fc6fa6e5ad34c2a8b9 to your computer and use it in GitHub Desktop.
Save hiranya911/8cdd50931da7b7fc6fa6e5ad34c2a8b9 to your computer and use it in GitHub Desktop.
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