How do I know about the OAuth data-authuser and date-profileindex?

0

I have the following situation ...

I have a page with links to google services. Ex.:

https://drive.google.com/drive
https://docs.google.com/document

However, the user can be authenticated with several Google profiles, for example the personal profile, company profile, etc, etc ...

Each of these profiles generates a url with the type index so ....

https://drive.google.com/drive/u/0/
https://docs.google.com/document/u/0/

This Zero at the end indicates the index of the authenticated profile ... evolving to .... in the case of the second profile ...

https://drive.google.com/drive/u/1/
https://docs.google.com/document/u/1/

Dude! ... I did not find an elegant way to make my page recognize which profile is authenticated in it and make the link point to the correct profile .... otherwise the link ends up falling on the default profile / u / 0 /

Do you have any alternatives to this? How should I do? T +

    
asked by anonymous 07.08.2018 / 01:46

0 answers