diff --git a/OAuth2-Backend-Approach.md b/OAuth2-Backend-Approach.md index 19b383a..fea8011 100644 --- a/OAuth2-Backend-Approach.md +++ b/OAuth2-Backend-Approach.md @@ -76,7 +76,7 @@ Content-Length: 0 2. Google **response** to Backend with an `access_token` and a `refresh token` 3. Backend **response** to Frontend with the `access_token` in a `cookie` -### 1. Back **POST** the `code` to Google +### 1. Backend **POST** the `code` to Google ```sh POST https://oauth2.googleapis.com/token @@ -89,7 +89,7 @@ client_id=ABC34JHS9D& client_secret=PASS1234 ``` -### 2. Google **response** to Back +### 2. Google **response** to Backend ```json @@ -102,7 +102,7 @@ client_secret=PASS1234 } ``` -### 3. Backend **response** to Front +### 3. Backend **response** to Frontend ```json { @@ -110,6 +110,7 @@ client_secret=PASS1234 "token_type": "Bearer", "expires_in": 3600, } +```

Backend code