Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.8 KB

POSTINSTALL.md

File metadata and controls

37 lines (24 loc) · 1.8 KB

See it in action

You can use this extension by initializing your Firebase app as normal and then adding the Firebase App Check provider. Code example:

import { CloudflareProviderOptions } from '@cloudflare/turnstile-firebase-app-check';

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 });

The CloudflareProviderOptions implementation can be found here: https://github.com/cloudflare/turnstile-firebase-app-check

Monitoring

As a best practice, you can monitor the activity of your installed extension, including checks on its health, usage, and logs.