To use this extension, create a new CustomProvider for App Check:
import { AltchaProviderOptions } from '@altcha/firebase-app-check';
const firebaseConfig = {
// your usual Firebase config
appId: '...'
};
const app = initializeApp(firebaseConfig);
const altchaProviderOptions = new AltchaProviderOptions({
appId: firebaseConfig.appId,
createAltchaChallengeUrl: 'https://.../ext-altcha-app-check-provider-createAltchaChallenge',
createAppCheckTokenUrl: 'https://.../ext-altcha-app-check-provider-createAppCheckToken',
});
const provider = new CustomProvider(altchaProviderOptions);
initializeAppCheck(app, { provider });
Replace createAltchaChallengeUrl
and createAppCheckTokenUrl
with URLs of the functions deployed by the extension.
As a best practice, you can monitor the activity of your installed extension, including checks on its health, usage, and logs.