mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
[Auth] Allow user select google account on login (#3777)
This commit is contained in:
@@ -56,6 +56,9 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
||||
|
||||
// Providers
|
||||
const googleProvider = new GoogleAuthProvider()
|
||||
googleProvider.setCustomParameters({
|
||||
prompt: 'select_account'
|
||||
})
|
||||
const githubProvider = new GithubAuthProvider()
|
||||
|
||||
// Getters
|
||||
|
||||
@@ -52,7 +52,9 @@ vi.mock('firebase/auth', () => ({
|
||||
signOut: vi.fn(),
|
||||
onAuthStateChanged: vi.fn(),
|
||||
signInWithPopup: vi.fn(),
|
||||
GoogleAuthProvider: vi.fn(),
|
||||
GoogleAuthProvider: class {
|
||||
setCustomParameters = vi.fn()
|
||||
},
|
||||
GithubAuthProvider: vi.fn(),
|
||||
browserLocalPersistence: 'browserLocalPersistence',
|
||||
setPersistence: vi.fn().mockResolvedValue(undefined)
|
||||
|
||||
Reference in New Issue
Block a user