🔐auth

POST https://secton.link/api/auth

Create an account or sign in to an existing one.

Sign Up

Request Body

NameExpected valueDescriptionLimitations

action*

signup

The authentication action

username*

Desired username of the user

3-32 characters

email*

Valid email address of the user

5-64 characters, pass validation

password*

Desired password of the user

6-64 characters

first_name

First name of the user

last_name

Last name of the user

{
    "message": "Signed up successfully."
}

Sign In

Request Body

NameExpected valueDescriptionLimitations

action*

signin

The authentication action

email*

Email address of the user

Pass validation

password*

Password of the user

{
    "message": "Signed in successfully."
}

Note: When authenticated, a session is created and saved into a cookie on the browser. Sessions normally expire 7 days after their creation date.

Last updated