File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- import { AuthProvider , GithubAuthProvider , GoogleAuthProvider } from 'firebase/auth'
1+ import { GithubAuthProvider , GoogleAuthProvider } from 'firebase/auth/web-extension '
22import { useCallback , useState } from 'react'
33import { FaGithub } from 'react-icons/fa'
44import { FcGoogle } from 'react-icons/fc'
@@ -18,6 +18,7 @@ type AuthModalProps = {
1818const googleAuthProvider = new GoogleAuthProvider ( )
1919const githubAuthProvider = new GithubAuthProvider ( )
2020
21+ type AuthProvider = GoogleAuthProvider | GithubAuthProvider
2122export const AuthModal = ( { showAuth } : AuthModalProps ) => {
2223 const { closeAuthModal, authError, setAuthError } = useAuth ( )
2324 const [ selectedProvider , setSelectedProvider ] = useState < AuthProvider > ( googleAuthProvider )
Original file line number Diff line number Diff line change 1- import { signOut } from 'firebase/auth'
1+ import { signOut } from 'firebase/auth/web-extension '
22import { AuthModalStore , AuthStore } from 'src/features/auth'
33import { trackUserDisconnect } from 'src/lib/analytics'
44import { firebaseAuth } from 'src/lib/firebase'
Original file line number Diff line number Diff line change 11import { initializeApp } from 'firebase/app'
2- import { getAuth } from 'firebase/auth'
2+ import { getAuth } from 'firebase/auth/web-extension '
33import { FIREBASE_API_KEY } from 'src/config'
44
55const firebaseConfig = {
Original file line number Diff line number Diff line change 1- import { GithubAuthProvider , GoogleAuthProvider , signInWithCredential } from 'firebase/auth'
1+ import {
2+ GithubAuthProvider ,
3+ GoogleAuthProvider ,
4+ signInWithCredential ,
5+ } from 'firebase/auth/web-extension'
26import { useCallback , useEffect } from 'react'
37import { useNavigate , useSearchParams } from 'react-router-dom'
48import toast from 'react-simple-toasts'
You can’t perform that action at this time.
0 commit comments