Files
knl_meowscendence/doc/auth/register.md

654 B

Register

Available endpoints:

  • /register
  • /register/google
  • /register/google/callback

Common return:

  • 500 with response
{
    "error": "Internal server error"
}

/register

Input needed :

{
    "user": "<string>",
    "password": "<string>"
}

Can return:

  • 200 with response and cookie in header
{
    "msg": "Register successfully"
}
  • 400 with response
{
    "error": "<corresponding error>"
}

/register/google

Does not take input

Always return:

  • redirect to the google auth url

/register/google/callback

inputs are filled by google

Can return:

  • 400 with response