# Firebase App Check

See full version at [https://codingcat.dev/post/firebase-app-check-web](https://codingcat.dev/post/firebase-app-check-web)

%[https://youtu.be/bpTw4aMxCU8] 

## Adding App Check

With just a few lines of code you can include app check into your website

```typescript
import { initializeAppCheck, ReCaptchaV3Provider } from 'firebase/app-check';

if (import.meta.env.DEV) {
	// @ts-ignore
	self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
}

initializeAppCheck(app, {
	provider: new ReCaptchaV3Provider('6LdAIqQlAAAAAC4kq-bag4J-HmAAVe_pu7T75QOf'),
	isTokenAutoRefreshEnabled: true
});
```

## Full Repo

You can clone the full repo from [GitHub](https://github.com/CodingCatDev/firebase-app-check).

<iframe src="https://stackblitz.com/github/CodingCatDev/firebase-app-check?embed=1&file=src/App.svelte" height="100%" width="100%"></iframe>
