diff --git a/OAuth2.md b/OAuth2.md index 755fd6d..0679ef4 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -100,7 +100,7 @@ const loginWithGoogle = () => { # 2. [Frontend] Receive Authorization Code -Now that the frontend have the Authorization Code `https://xorismesiti.gr/api/auth/callback?code=AAAABCX4XfWgyVyziyLg0QHHHHH` it can send it to the backend with POST to `xorismesiti.gr/api/auth/exchange-token`, in order the backend to exchange the `code` for an `access_token` and optionally an `refresh_token` +Now that the frontend have the Authorization `code` on th callback url https://xorismesiti.gr/api/auth/callback`?code=AAAABCX4XfWgyVyziyLg0QHHHHH` it can send it to the backend with POST to `xorismesiti.gr/api/auth/exchange-token`, in order the backend to exchange the `code` for an `access_token` and optionally an `refresh_token`

Frontend HTTP POST Request to Backend