From 12573135a9a2fd1ca77423f0101bc44079b8897d Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Sun, 15 Dec 2024 10:05:55 +0200 Subject: [PATCH] Update OAuth2.md --- OAuth2.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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