Skip to content

Commit

Permalink
Change captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBlake00 committed Aug 18, 2024
1 parent e58ac1f commit bc44ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firebase/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {FirebaseApp, initializeApp} from "firebase/app";
import {getAnalytics, isSupported} from "firebase/analytics";
import {Database, get, getDatabase, ref} from "@firebase/database";
import {Auth, getAuth, signInAnonymously} from "@firebase/auth";
import {initializeAppCheck, ReCaptchaEnterpriseProvider} from "@firebase/app-check";
import {initializeAppCheck, ReCaptchaV3Provider} from "@firebase/app-check";
import {Project} from "@/interfaces";

// Firebase configuration object
Expand All @@ -29,7 +29,7 @@ if (typeof window !== "undefined") {

initializeAppCheck(app, {
//@ts-ignore
provider: new ReCaptchaEnterpriseProvider(process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY),
provider: new ReCaptchaV3Provider(process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY),
isTokenAutoRefreshEnabled: true,
});

Expand Down

0 comments on commit bc44ff6

Please sign in to comment.