Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Firebase App Check #16

Merged
merged 2 commits into from
May 1, 2024
Merged

Enable Firebase App Check #16

merged 2 commits into from
May 1, 2024

Conversation

LamboCreeper
Copy link
Member

Enabling Firebase App Check for added security around Firestore operations.

@LamboCreeper LamboCreeper marked this pull request as ready for review April 30, 2024 17:43
@@ -22,4 +23,9 @@ const emulatorDetails = {
if (process.env.REACT_APP_ENV !== "production") {
connectAuthEmulator(getAuth(), emulatorDetails.authURL!);
connectFirestoreEmulator(getFirestore(), emulatorDetails.firestoreHost!, +emulatorDetails.firestorePort!);
} else {
initializeAppCheck(app, {
provider: new ReCaptchaV3Provider("6LenhPoZAAAAAIE_6OQ4Aj6FwFd531NcLxh_a386"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen locally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're using the Emulator so App Check has no use - it will bypass. If we instantiate it locally it will cause React to crash anyway due to local host not being whitelisted in ReCaptcha.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah ignore me I see the prod check

@LamboCreeper LamboCreeper merged commit 4806b55 into master May 1, 2024
2 checks passed
@LamboCreeper LamboCreeper deleted the appcheck branch May 1, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants