diff --git a/OAuth2.md b/OAuth2.md index dd67331..0ea95aa 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -29,7 +29,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth? # 3. Authorization Code Response (Google Redirects to Your Platform) -Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters. +1. Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters. ```sh GET https://xorismesiti.gr/callback? @@ -46,11 +46,9 @@ GET https://xorismesiti.gr/callback? # 4. Access Token Request (Exchange Authorization Code for Token) -Now that your platform has the authorization code, +Now your platform can use exchange the authorization code for an access token and refresh token. -it sends a POST request to Google's token endpoint - -to exchange the authorization code for an access token and refresh token. +1. it sends a POST request to Google's token endpoint - `HTTP` Method: POST - `URL`: https://oauth2.googleapis.com/token