Update OAuth2-Front-Approach.md

This commit is contained in:
Ste Vaidis 2024-12-16 11:10:41 +02:00
parent a43277fe2e
commit b48f9d7dbb

View File

@ -2,7 +2,7 @@
A way for the `user` to tell `google` to give an access token to `xorismesiti.gr` app A way for the `user` to tell `google` to give an access token to `xorismesiti.gr` app
<br><br><br> <br><br>
### OAuth2 Frontend/Backend Flow: ### OAuth2 Frontend/Backend Flow:
@ -12,7 +12,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
| 2 | Exchange Code with Token | Frontend ⇢ Backend ⇢ Google ⇢ Backend ⇢ Frontend | | 2 | Exchange Code with Token | Frontend ⇢ Backend ⇢ Google ⇢ Backend ⇢ Frontend |
| 4 | Use Token | Frontend ⇢ Google ⇢ Frontend | | 4 | Use Token | Frontend ⇢ Google ⇢ Frontend |
<br><br><br> <br><br>
### OAuth2 Frontend/Backend Flow: ### OAuth2 Frontend/Backend Flow:
@ -25,7 +25,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
7. Frontend **Store** `access_token` and `refresh token` to secure cookie 7. Frontend **Store** `access_token` and `refresh token` to secure cookie
8. Frontend **Use** `access_token` to get user data from Google 8. Frontend **Use** `access_token` to get user data from Google
<br><br><br> <br><br>