Update OAuth2.md
This commit is contained in:
parent
9a5a9549ef
commit
02aa0aeeff
@ -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
|
||||
|
||||
### 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.
|
||||
2. After this redirection, the user will log in to Google and grant permissions (if they haven’t already).
|
||||
@ -79,7 +79,7 @@ const loginWithGoogle = () => {
|
||||
|
||||
# 2. [Frontend] Receive Authorization Code
|
||||
|
||||
### And send it to the Backend
|
||||
And send it to the Backend
|
||||
|
||||
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`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user