@cloudflare/turnstile-firebase-app-check

0.0.3 • Public • Published

turnstile-firebase-app-check

This repository leverages the cloudflare-turnstile-app-check-provider Firebase extension, and offers an implementation of a CustomProvider using Firebase App Check tokens.

Sample code

const app = initializeApp(firebaseConfig);

const siteKey = 'YOUR-SITEKEY';
const HTTP_ENDPOINT = '${function:function-name.url}';

const cpo = new CloudflareProviderOptions(HTTP_ENDPOINT, siteKey);
const provider = new CustomProvider(cpo);

initializeAppCheck(app, { provider });

Note: the firebase function must be using the aforementioned extension.

Package Sidebar

Install

npm i @cloudflare/turnstile-firebase-app-check

Weekly Downloads

998

Version

0.0.3

License

none

Unpacked Size

160 kB

Total Files

16

Last publish

Collaborators

  • lerwincf
  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga