File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 44 GoogleAuthProvider ,
55 sendPasswordResetEmail ,
66 signInWithEmailAndPassword ,
7- // signInWithPopup, // use this with localhost, still might need to refresh or manually update address bar
7+ signInWithPopup ,
88 signInWithRedirect ,
99} from ' firebase/auth'
1010import type { VForm } from ' vuetify/components'
@@ -150,7 +150,14 @@ async function signinWithGoogle() {
150150 )
151151 return
152152 }
153- signInWithRedirect (auth , googleProvider )
153+ if (import .meta .dev ) {
154+ // Use this with localhost, still might need to refresh or manually update address bar
155+ signInWithPopup (auth , googleProvider )
156+ }
157+ else {
158+ // Doesn't work on localhost
159+ signInWithRedirect (auth , googleProvider )
160+ }
154161}
155162 </script >
156163
You can’t perform that action at this time.
0 commit comments