Update OAuth2.md
This commit is contained in:
parent
6c194e6461
commit
1d5fb5512c
@ -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.
|
||||
|
||||
<details>
|
||||
<summary><h3>HTTP Request</h3></summary>
|
||||
<summary><h3>Frontend HTTP Request to Google</h3></summary>
|
||||
|
||||
```sh
|
||||
GET https://accounts.google.com/o/oauth2/v2/auth?
|
||||
@ -62,7 +62,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>HTTP Response</h3></summary>
|
||||
<summary><h3>Frontend HTTP Response from Google</h3></summary>
|
||||
|
||||
```bash
|
||||
HTTP/1.1 302 Found
|
||||
@ -106,7 +106,7 @@ const loginWithGoogle = () => {
|
||||
|
||||
|
||||
<details>
|
||||
<summary><h3>HTTP Request</h3></summary>
|
||||
<summary><h3>Frontend HTTP Request to Backend</h3></summary>
|
||||
|
||||
```bash
|
||||
POST https://xorismesiti.gr/api/auth/exchange-token
|
||||
@ -120,7 +120,7 @@ Content-Type: application/json
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>HTTP Response</h3></summary>
|
||||
<summary><h3>Frontend HTTP Response from Backend</h3></summary>
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user