sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

Login with another account #19

Closed ahmadarif closed 6 years ago

ahmadarif commented 6 years ago

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.

ahmadarif commented 6 years ago

Solved, my bad :)

Shakell commented 6 years ago

How you solve it? I meet the same thing. Thanks.

ravitejabommakanti commented 6 years ago

We are facing the same issue, Please let us know how to solve it.

ahmadarif commented 6 years ago

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.

sebastiangug commented 5 years ago

@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.

ravitejabommakanti commented 5 years ago

We have resolved it by giving "prompt: 'select_account'" in Google login options

sebastiangug commented 5 years ago

@ravitejabommakanti where exactly can you add that prompt option?

sammysium commented 5 years ago

@ravitejabommakanti how did you do that please?

ravitejabommakanti commented 5 years ago

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

sammysium commented 5 years ago

Thanks @ravitejabommakanti . Where does LoginOpt get imported from or how do you declare it?