From 1d5fb5512c193056c43d8c0177c2d9f2e175b47b Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Sun, 15 Dec 2024 13:19:08 +0200 Subject: [PATCH] Update OAuth2.md --- OAuth2.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OAuth2.md b/OAuth2.md index 27afa71..660faf0 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -42,7 +42,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr 3. Google will redirect the user back to your specified redirect_uri with an authorization code.
-

HTTP Request

+

Frontend HTTP Request to Google

```sh GET https://accounts.google.com/o/oauth2/v2/auth? @@ -62,7 +62,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
-

HTTP Response

+

Frontend HTTP Response from Google

```bash HTTP/1.1 302 Found @@ -106,7 +106,7 @@ const loginWithGoogle = () => {
-

HTTP Request

+

Frontend HTTP Request to Backend

```bash POST https://xorismesiti.gr/api/auth/exchange-token @@ -120,7 +120,7 @@ Content-Type: application/json
-

HTTP Response

+

Frontend HTTP Response from Backend

```json {