diff --git a/OAuth2-Backend-Approach.md b/OAuth2-Backend-Approach.md index fea8011..a2f5122 100644 --- a/OAuth2-Backend-Approach.md +++ b/OAuth2-Backend-Approach.md @@ -84,9 +84,9 @@ Content-Type: application/x-www-form-urlencoded grant_type=authorization_code& code=AAAABCX4XfWgyVyziyLg0QHHHHH& -redirect_uri=https://xorismesiti.gr/callback& client_id=ABC34JHS9D& -client_secret=PASS1234 +client_secret=PASS1234& +redirect_uri=https://xorismesiti.gr/callback ``` ### 2. Google **response** to Backend @@ -102,7 +102,7 @@ client_secret=PASS1234 } ``` -### 3. Backend **response** to Frontend +### 3. Backend **response** to Frontend (for the initial request to Google) ```json { @@ -113,7 +113,18 @@ client_secret=PASS1234 ```
-

Backend code

+ +

Backend code

+

+

Implements the endpoint /auth/google/callback

+
+ +
```js // Backend callback URL: http://localhost:3000/auth/google/callback