-
Notifications
You must be signed in to change notification settings - Fork 3
Auth
kimsungwon edited this page Apr 2, 2024
·
8 revisions
- URL
HTTP Method | URL |
---|---|
GET | /api/v1/google/sign-in |
- Query Parameters
Key | Type | Value Description |
---|
- Headers
Key | Value Description |
---|
-
Status code
- 302
-
Cookies (empty)
-
Body (empty)
-
Status code
- 4xx
- 5xx
-
Body
{
"messages": ["{error_message}"]
}
- URL
HTTP Method | URL |
---|---|
GET | /api/v1/google/sign-in/token |
- Query Parameters
Key | Type | Value Description |
---|---|---|
code | unknown | Authorization code from Google |
state | UUID v4 | Random string for prevent CSRF attack |
- Headers
Key | Value Description |
---|
-
Status code
- 302
-
Cookies
Key | Value Description |
---|---|
mrcToken | Token from Mr.C server |
- Body (empty)
-
Status code
- 4xx
- 5xx
-
Body
{
"messages": ["{error_message}"]
}
- URL
HTTP Method | URL |
---|---|
GET | /api/v1/auth/sign-out |
- Query Parameters
Key | type | Value Description |
---|
- Headers
Key | Value Description |
---|---|
Authorization | Token from Mr.C server |
- Cookies
Key | Value Description |
---|---|
mrcToken | Token from Mr.C server |
- Status code
- 200
- Body (Empty)
- Status code
- 4xx
- 5xx
- Body
{
"messages": ["{error_message}"]
}