Forcing a user to choose an account via Google OAuth2

后端 未结 2 2014
感动是毒
感动是毒 2021-01-04 03:33

I have the following workflow in my application:

  1. user logs into my custom app
  2. user clicks a button to link their YouTube account
  3. applicatio
2条回答
  •  难免孤独
    2021-01-04 04:01

    I think you can add some parameter in the url to tell google to show the consent screen with the user accounts instead of assuming the default google account.

    This can be done by adding prompt=select_account+consent ("+" is added as a part of url encoding) in the url.

    I did not try this till now but maybe you can try.

提交回复
热议问题