From 7b04f9918130108c1a125575e09c716c714c197f Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Sun, 15 Dec 2024 19:19:43 +0200 Subject: [PATCH] Update OAuth2-Front-Approach.md --- OAuth2-Front-Approach.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OAuth2-Front-Approach.md b/OAuth2-Front-Approach.md index 7a10ada..ba0a891 100644 --- a/OAuth2-Front-Approach.md +++ b/OAuth2-Front-Approach.md @@ -327,14 +327,14 @@ res.cookie('access_token', accessToken, {
-1. The frontend receives the tokens from the Backend response, -2. Store them in the localStorage of the browser +1. The frontend receives the tokens from the Backend response +2. Store them in a secure cookie 3. Make authenticated requests directly to Google API
-

HTTP GET Request from Frontend to Backend

+

HTTP GET Request from Frontend to Google

```bash GET https://www.googleapis.com/oauth2/v3/userinfo @@ -344,7 +344,7 @@ Authorization: Bearer ACCESSTOKEN6zXZkHi2XITkDoOVACCESSTOKEN
-

HTTP GET Response from Backend to Frontend

+

HTTP GET Response from Google to Frontend

```json {