Update OAuth2.md
This commit is contained in:
parent
0cb8daf566
commit
70828eaec5
@ -289,11 +289,7 @@ app.listen(3000, () => {
|
||||
|
||||
# 4. [Frontend] Use the Token
|
||||
|
||||
Once the backend exchanges the `code` for the `access_token`,
|
||||
|
||||
incude these tokens to POST reponse recieved from frontend,
|
||||
|
||||
so that the frontend can use it to make authenticated requests to the backend or Google APIs
|
||||
The frontend receives the tokens from the Backend response, so to make authenticated requests to the backend or Google APIs
|
||||
|
||||
<details>
|
||||
<summary><h3>Frontend HTTP GET Request to Backend</h3></summary>
|
||||
@ -305,7 +301,7 @@ Authorization: Bearer access-token-from-backend
|
||||
|
||||
</details>
|
||||
|
||||
#### ↴ Step 5 takes place here: The Backend request the user data from Google using the Tokens
|
||||
**↴** Step 5 takes place here: The Backend request the user data from Google using the Tokens
|
||||
|
||||
<details>
|
||||
<summary><h3>Backedn HTTP Response to Frontend</h3></summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user