You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
Remember that the user will ultimately be in charge of choosing what the app can and cannot do, so make sure to handle cases where one of the 3 auth options is not available.
47
+
:::
48
+
49
+
### 1.2 Confirm Authentication
50
+
51
+
**Endpoint**
40
52
41
-
**Endpoint:**`GET /confirm-auth`
53
+
`GET /confirm-auth`
42
54
43
-
**Description:** Verifies the authentication token.
55
+
**Request Body**
44
56
45
-
**Request:**
46
-
-**Headers:**
47
-
-`Authorization: Bearer your-token`
48
-
-`Content-Type: application/json`
57
+
```json
58
+
{
59
+
"id": "Your ID",
60
+
"platform": "Platform"
61
+
}
62
+
```
63
+
64
+
**Curl Example**
49
65
50
-
**Example `curl` Command:**
51
-
```bash
66
+
```sh
52
67
curl --location --request GET 'http://localhost:3000/confirm-auth' \
53
68
--header 'Authorization: Bearer your-token' \
54
69
--header 'Content-Type: application/json' \
55
70
--data '{
56
-
"platform": "your-platform",
57
-
"id": "your-id"
58
-
}'
71
+
"platform": "Platform",
72
+
"id": "Your ID"
73
+
}'
59
74
```
60
75
61
-
### Notes Management
62
-
63
-
#### Add Note
64
-
65
-
**Endpoint:**`POST /add-note`
66
-
67
-
**Description:** Adds a new note and broadcasts it to all connected clients.
0 commit comments