4

I am implementing google login using javascript and oAuth2. I get to the point where I show 'accept permissions' window, then user clicks 'accept' and it goes back to my redirect_uri link. Here I have no idea how to grab accessToken which comes with the response.. Can someone show a small javascript example how to grab that token, so I could use it later? Thanks

1
  • you must exchange the code you receive to get an accesstoken. Did you ever get this working? Commented Jun 5, 2013 at 14:32

1 Answer 1

2

The easy solution is to use a javascript oauth 2.0 library like this: https://github.com/andreassolberg/jso

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.