Skip to content

Commit

Permalink
Updated Firebase auth config
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayh committed Mar 6, 2024
1 parent 2884c50 commit f105a96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/firebase.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { initializeApp } from "firebase/app"

export const firebaseConfig = {
apiKey: "AIzaSyA-bK7ElDp76XhjTjkpzApULPLV8ZjQna4",
const firebaseConfig = {
apiKey: "AIzaSyAU7YNgOeToGurqKm8Dk7gthGmqc_QGfbo",
authDomain: "lifecal.web.app",
projectId: "lifecal-backend",
storageBucket: "lifecal-backend.appspot.com",
messagingSenderId: "531017479197",
appId: "1:531017479197:web:cb03ad0e95beaa447a42f4",
appId: "1:531017479197:web:da88984f47b770027a42f4",
}

export const app = initializeApp(firebaseConfig)
6 changes: 3 additions & 3 deletions src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
signInWithPopup,
GithubAuthProvider,
GoogleAuthProvider,
// browserPopupRedirectResolver,
browserPopupRedirectResolver,
} from "firebase/auth"
import { formatISO } from "date-fns"

Expand Down Expand Up @@ -149,8 +149,8 @@ export const useUserStore = create<UserState>()(
} else if (authMethod === "github") {
await signInWithPopup(
auth,
new GithubAuthProvider().addScope("read:user")
// browserPopupRedirectResolver
new GithubAuthProvider().addScope("read:user"),
browserPopupRedirectResolver
)
} else if (authMethod === "google") {
await signInWithPopup(
Expand Down

0 comments on commit f105a96

Please sign in to comment.