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
***Error Response:**`401 Unauthorized` (if not authenticated), `400 Bad Request` (if not anonymous or invalid email), `409 Conflict` (if email is already in use or linking is pending).
103
+
***Example:**`POST /api/v1/auth/link-email` with body `{"email": "[email protected]"}` and `Authorization: Bearer <anonymous_token>` header.
104
+
105
+
5.**Complete Account Linking (Anonymous User)**
106
+
***Method:**`POST`
107
+
***Path:**`/api/v1/auth/verify-link-email`
108
+
***Authentication:** Required (Bearer Token of the *anonymous* user who initiated the link).
***Success Response:**`200 OK` with `SuccessApiResponse<AuthSuccessResponse>` containing the updated (now permanent) `User` object and a **new** authentication `token`.
111
+
***Error Response:**`401 Unauthorized` (if not authenticated), `400 Bad Request` (if not anonymous or invalid code), `400 Bad Request` via `InvalidInputException` (if code is incorrect/expired).
112
+
***Example:**`POST /api/v1/auth/verify-link-email` with body `{"code": "654321"}` and `Authorization: Bearer <anonymous_token>` header.
113
+
114
+
6.**Get Current User Details**
97
115
***Method:**`GET`
98
116
***Path:**`/api/v1/auth/me`
99
117
***Authentication:** Required (Bearer Token).
100
118
***Success Response:**`200 OK` with `SuccessApiResponse<User>` containing the details of the authenticated user.
101
119
***Error Response:**`401 Unauthorized`.
102
120
***Example:**`GET /api/v1/auth/me` with `Authorization: Bearer <token>` header.
0 commit comments