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');