Kristine Gharibyan
Kristine Gharibyan

Reputation: 11

How to open google sign in pop up with different clint_id s?

How can I open google sign in pop up with different clicnt_id s in one project? I want to have 2 different logins for mail and calendar. That's why I need 2 different client ids, but google make init only once, and the second doesn't work.

I have tried to call gapi.auth2.init twice, but second pop up doesn't open. Also I've tried with gapi.auth2.authorize.

enter image description here

Upvotes: 0

Views: 55

Answers (2)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117254

Why would you want two different client id's. Client ids just denote your application to google. If you have two different client ids when you go to verify the application they are without a doubt going to make you remove one.

I question why you would want two different logins, but the solution would be to use two different users.

Upvotes: 0

Leonardo Lima
Leonardo Lima

Reputation: 358

you can use angular environments

try to put a part of your code to see if i can help you a little more

Upvotes: 0

Related Questions