How would Google Multiple Accounts Sign-in be implemented?

有些话、适合烂在心里 提交于 2019-12-07 15:52:27

问题


Google published that they are testing a feature that allows you to sign in simultaneously to multiple Google accounts in the same browser.

Any idea how would that be implemented ?


回答1:


I don’t have any inside info on how multiple accounts are actually supported, but here’s what I presume:

  1. Your cookie holds a security token, just like in the old days.
  2. The security token now maps to a set of signed-in accounts on the server.
  3. I’d guess there’s a notion of an active account among this set.
  4. When you go to a Google service that implements multiple-account support, the service pulls down your active account and drops you into that account by default.
  5. Then, you get presented with some UI that lets you toggle between your other signed-in accounts or lets you sign into a new account.


来源:https://stackoverflow.com/questions/3254646/how-would-google-multiple-accounts-sign-in-be-implemented

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!