From 6f01713c56810a2182f74e57ae59983a87bc9c37 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Tue, 7 Jan 2025 15:04:21 +0200 Subject: [PATCH] Update OAuth2-Backend-Approach.md --- OAuth2-Backend-Approach.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OAuth2-Backend-Approach.md b/OAuth2-Backend-Approach.md index d5c7353..7a4beaa 100644 --- a/OAuth2-Backend-Approach.md +++ b/OAuth2-Backend-Approach.md @@ -151,7 +151,7 @@ curl -X GET https://xorismesiti.gr/api/auth/profile \ -H "Accept: application/json" ``` -### 2. Backend **GET** profile data from Google `https://www.googleapis.com/oauth2/v3/userinfo` using the `access_token` from Front `cookie` +### 2. Backend **GET** profile data from Google ```bash curl -X GET "https://www.googleapis.com/oauth2/v3/userinfo" \ @@ -186,6 +186,7 @@ curl -X GET "https://www.googleapis.com/oauth2/v3/userinfo" \ } ``` +### Frontend Code ```js import React, { useState, useEffect } from 'react';