Skip to content
kimsungwon edited this page Apr 2, 2024 · 8 revisions

Table of Contents

Login

Request

  • URL
HTTP Method URL
GET /api/v1/google/sign-in
  • Query Parameters
Key Type Value Description
  • Headers
Key Value Description

Response

Success

  • Status code

    • 302
  • Cookies (empty)

  • Body (empty)

Fail

  • Status code

    • 4xx
    • 5xx
  • Body

{
    "messages": ["{error_message}"]
}

Get ID token

Request

  • 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

Response

Success

  • Status code

    • 302
  • Cookies

Key Value Description
mrcToken Token from Mr.C server
  • Body (empty)

Fail

  • Status code

    • 4xx
    • 5xx
  • Body

{
    "messages": ["{error_message}"]
}

Logout

Request

  • 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

Response

Success

  • Status code
    • 200
  • Body (Empty)

Fail

  • Status code
    • 4xx
    • 5xx
  • Body
{
    "messages": ["{error_message}"]
}
Clone this wiki locally