Get info about auth origin

You also need to do step three of oAuth, exchange the code for an access token.

And then you use and store that

The code is useless other than to exchange for an access token.