Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 13:19:08 +02:00
parent 6c194e6461
commit 1d5fb5512c

View File

@ -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. 3. Google will redirect the user back to your specified redirect_uri with an authorization code.
<details> <details>
<summary><h3>HTTP Request</h3></summary> <summary><h3>Frontend HTTP Request to Google</h3></summary>
```sh ```sh
GET https://accounts.google.com/o/oauth2/v2/auth? GET https://accounts.google.com/o/oauth2/v2/auth?
@ -62,7 +62,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
</details> </details>
<details> <details>
<summary><h3>HTTP Response</h3></summary> <summary><h3>Frontend HTTP Response from Google</h3></summary>
```bash ```bash
HTTP/1.1 302 Found HTTP/1.1 302 Found
@ -106,7 +106,7 @@ const loginWithGoogle = () => {
<details> <details>
<summary><h3>HTTP Request</h3></summary> <summary><h3>Frontend HTTP Request to Backend</h3></summary>
```bash ```bash
POST https://xorismesiti.gr/api/auth/exchange-token POST https://xorismesiti.gr/api/auth/exchange-token
@ -120,7 +120,7 @@ Content-Type: application/json
</details> </details>
<details> <details>
<summary><h3>HTTP Response</h3></summary> <summary><h3>Frontend HTTP Response from Backend</h3></summary>
```json ```json
{ {