Closed ahmadarif closed 6 years ago
Solved, my bad :)
How you solve it? I meet the same thing. Thanks.
We are facing the same issue, Please let us know how to solve it.
Sorry for the very late reply. When using google, just login with another google account in your browser. And the login page will automatically show list of your google account or add another account.
@ahmadarif that's it? but google manages multiple accounts at once, I'm always logged in with 2-3. Would be really nice to be able to pick.
We have resolved it by giving "prompt: 'select_account'" in Google login options
@ravitejabommakanti where exactly can you add that prompt option?
@ravitejabommakanti how did you do that please?
const googleLoginOptions: LoginOpt = { scope: "profile email https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.appdata", prompt: "select_account" };
// Our Auth
export function getAuthServiceConfigs() { const config = new AuthServiceConfig([ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider(environment.G_TOKEN, googleLoginOptions) } ]); return config; }
Hope this helps
Thanks @ravitejabommakanti . Where does LoginOpt get imported from or how do you declare it?
How to login with another account? I have logged out, but when login again can not select account, so automatically login using the first account.