Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 16:21:46 +02:00
parent d9382f07e1
commit c3c628221b

View File

@ -289,7 +289,11 @@ app.listen(3000, () => {
# 4. [Frontend] Use the Token # 4. [Frontend] Use the Token
The frontend receives the tokens from the Backend response, so to make authenticated requests to the backend or Google APIs 1. The frontend receives the tokens from the Backend response,
2. Store them in the localStorage of the browser
3. Make authenticated requests
a. Directly to Google APIs
b. To backend
<details> <details>
<summary><h3>Frontend HTTP GET Request to Backend</h3></summary> <summary><h3>Frontend HTTP GET Request to Backend</h3></summary>