Update OAuth2-Backend-Approach.md
This commit is contained in:
parent
cc6f64130f
commit
3638fb2b1e
@ -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,
|
||||
}
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary><h4>Backend code</h4></summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user