Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 12:14:16 +02:00
parent 9a5a9549ef
commit 02aa0aeeff

View File

@ -30,7 +30,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
# 1. [Frontend] Request Authorization code # 1. [Frontend] Request Authorization code
### Redirect the user to Google's OAuth Authorization Endpoint Redirect the user to Google's OAuth Authorization Endpoint
1. The use clicks a "Login with Google" button with a URL to Google's OAuth 2.0 authorization endpoint and redirects the user there. 1. The use clicks a "Login with Google" button with a URL to Google's OAuth 2.0 authorization endpoint and redirects the user there.
2. After this redirection, the user will log in to Google and grant permissions (if they havent already). 2. After this redirection, the user will log in to Google and grant permissions (if they havent already).
@ -79,7 +79,7 @@ const loginWithGoogle = () => {
# 2. [Frontend] Receive Authorization Code # 2. [Frontend] Receive Authorization Code
### And send it to the Backend And send it to the Backend
1. Once the user grants permission, 1. Once the user grants permission,
2. Google will redirect the user to the `redirect_uri` you specified in the previous step (`https://xorismesiti.gr/api/auth/callback`) 2. Google will redirect the user to the `redirect_uri` you specified in the previous step (`https://xorismesiti.gr/api/auth/callback`)