Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 11:52:07 +02:00
parent c5b29972c1
commit e4eceec39f

View File

@ -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.
<details>
<summary>Code:</summary>
<summary><h3>Frontend Code:</h3></summary>
```js
// On the backend callback URL, the frontend receives the authorization code
@ -122,7 +122,7 @@ client_secret=YOUR_GOOGLE_CLIENT_SECRET
```
<details>
<summary>Code:</summary>
<summary><h3>Backend Code:</h3></summary>
```js
const express = require('express');