Update OAuth2-Backend-Approach.md

This commit is contained in:
Ste Vaidis 2025-01-07 12:53:06 +02:00
parent 0c73a3da15
commit 551b96e952

View File

@ -30,8 +30,8 @@ A way for the `user` to tell `google` to give an access to `xorismesiti.gr` app
3. Use Token 3. Use Token
1. Front **GET** profile data from Back using the `cookie` 1. Front **GET** profile data from Back `https://xorismesiti.gr/api/auth/profile` using the `cookie`
2. Back **GET** profile data from Google using the `access_token` from Front `cookie` 2. Back **GET** profile data from Google `https://www.googleapis.com/oauth2/v3/userinfo` using the `access_token` from Front `cookie`
3. Google **response** to Back with profile data 3. Google **response** to Back with profile data
4. Back **response** to Front with profile data 4. Back **response** to Front with profile data