From e4eceec39f00637c4815955953e33d12eaa69dc7 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Sun, 15 Dec 2024 11:52:07 +0200 Subject: [PATCH] Update OAuth2.md --- OAuth2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OAuth2.md b/OAuth2.md index d2e6c8b..b971a01 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -52,7 +52,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth? The frontend must not directly exchange the `code` for an `access_token`. Instead, it sends the `code` to the backend via an API request.
-Code: +

Frontend Code:

```js // On the backend callback URL, the frontend receives the authorization code @@ -122,7 +122,7 @@ client_secret=YOUR_GOOGLE_CLIENT_SECRET ```
-Code: +

Backend Code:

```js const express = require('express');