Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 15:50:52 +02:00
parent 0cb8daf566
commit 70828eaec5

View File

@ -289,11 +289,7 @@ app.listen(3000, () => {
# 4. [Frontend] Use the Token # 4. [Frontend] Use the Token
Once the backend exchanges the `code` for the `access_token`, The frontend receives the tokens from the Backend response, so to make authenticated requests to the backend or Google APIs
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
<details> <details>
<summary><h3>Frontend HTTP GET Request to Backend</h3></summary> <summary><h3>Frontend HTTP GET Request to Backend</h3></summary>
@ -305,7 +301,7 @@ Authorization: Bearer access-token-from-backend
</details> </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> <details>
<summary><h3>Backedn HTTP Response to Frontend</h3></summary> <summary><h3>Backedn HTTP Response to Frontend</h3></summary>