A
A
Alexander Interesting2021-06-11 11:50:27
Google
Alexander Interesting, 2021-06-11 11:50:27

What to do with code from Google OAuth 2.0?

I write authorization through Google. I make a request to the site

https://accounts.google.com/o/oauth2/auth?redirect_uri=URL&response_type=code&client_id=CLIENT_ID&scope=https://www.googleapis.com/auth/gmail.readonly
and it redirects to the correct page, with GET requests -
?code=4/бла-бла-бла&scope=https://www.googleapis.com/auth/gmail.readonly
, but I don’t understand what to do with this code, there is no normal information

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-06-11
@Kozack

Further with this code it is necessary to request `access_token`.
Introduction to OAuth 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question