đauth
POST
https://secton.link/api/auth
Create an account or sign in to an existing one.
Sign Up
Request Body
Name | Expected value | Description | Limitations |
---|---|---|---|
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 |
Sign In
Request Body
Name | Expected value | Description | Limitations |
---|---|---|---|
action* | signin | The authentication action | |
email* | Email address of the user | Pass validation | |
password* | Password of the user |
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