Skip to content

Commit c9828c8

Browse files
committed
include appcheck
1 parent 2ff4fd6 commit c9828c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/App.svelte

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
1717
// Initialize Firebase
1818
const app = initializeApp(firebaseConfig);
19+
20+
// reCAPTCHA App Check
21+
22+
const {
23+
initializeAppCheck,
24+
ReCaptchaV3Provider,
25+
} = require("firebase/app-check");
26+
27+
initializeAppCheck(app, {
28+
provider: new ReCaptchaV3Provider(
29+
"6LdAIqQlAAAAAC4kq-bag4J-HmAAVe_pu7T75QOf"
30+
),
31+
isTokenAutoRefreshEnabled: true,
32+
});
1933
</script>
2034

2135
<main>

0 commit comments

Comments
 (0)