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';