I want to display all the information in an access token (given_name, family_name, email, userid....) given by google oauth2 with javascript.
Is there a good example/demo where this is already done? If not, what is the best way to decode the access token you get when you log in with javascript on oauth2.
I found this example that displays name and profile picture, but I don't understand how they did it: (http://www.gethugames.in/blog/2012/04/authentication-and-authorization-for-google-apis-in-javascript-popup-window-tutorial.html)