From 128d95b6c6b7be978d1b263d550d84f9ae64aad2 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Sun, 15 Dec 2024 15:00:19 +0200 Subject: [PATCH] Update OAuth2.md --- OAuth2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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