Auth
POST
/
auth.createAdmin
Auth create Admin
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredemail
Requiredstring
Format:
"email"
password
Requiredstring
Minimum length:
8
Successful response
POST
/
auth.createUser
Auth create User
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredpassword
Requiredstring
Minimum length:
8
id
Requiredstring
token
Requiredstring
Minimum length:
1
Successful response
POST
/
auth.login
Auth login
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredemail
Requiredstring
Format:
"email"
password
Requiredstring
Minimum length:
8
Successful response
GET
/
auth.get
Successful response
POST
/
auth.logout
Successful response
POST
/
auth.update
Auth update
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredid
string
email
Requiredstring | null
password
Requiredstring | null
rol
string
Value in:
"admin" | "user"
image
string
secret
string | null
token
string | null
is2FAEnabled
boolean
createdAt
string
resetPasswordToken
string | null
resetPasswordExpiresAt
string | null
confirmationToken
string | null
confirmationExpiresAt
string | null
Successful response
POST
/
auth.generateToken
Successful response
GET
/
auth.one
Successful response
GET
/
auth.generate2FASecret
Successful response
POST
/
auth.verify2FASetup
Auth verify2 F A Setup
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredpin
Requiredstring
Minimum length:
6
secret
Requiredstring
Minimum length:
1
Successful response
POST
/
auth.verifyLogin2FA
Auth verify Login2 F A
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredpin
Requiredstring
Minimum length:
6
id
Requiredstring
Successful response
POST
/
auth.disable2FA
Successful response
POST
/
auth.sendResetPasswordEmail
Auth send Reset Password Email
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
Requiredemail
Requiredstring
Minimum length:
1
Format: "email"
Successful response
POST
/
auth.resetPassword
Auth reset Password
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
RequiredresetPasswordToken
Requiredstring
Minimum length:
1
password
Requiredstring
Minimum length:
1
Successful response
POST
/
auth.confirmEmail
Auth confirm Email
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
application/json
RequiredconfirmationToken
Requiredstring
Minimum length:
1
Successful response