🔏Authentication
Authenticate the user in the NextFUR environment. (Not avaliable for the general public)
Last updated
Authenticate the user in the NextFUR environment. (Not avaliable for the general public)
Last updated
You must understand that to authenticate an user in the environment you must be listed as one of the . The API generates an TOKEN and makes sure that its unique so you can use it as the user to get user information and do stuff.
Here is an example of how you can authenticate the user. And also get its information by making one request.
/v1/oauth2
GET /login
POST /login
GET /register
POST /register
GET /authorize
TWO FACTOR AUTHENTICATION: /v1/oauth2/2fa/
GET /mailconfirm
POST/mailconfirm
GET /resendcode
Generally NOT used for client applications. API system already handles auth inside the system, with all redirect and 2FA.
SECURITY: FALSE
ACTION: Fetches if the user is logged in, then redirects to the redirect URL.
RESULT: EJS
-> RESULT
SECURITY: FALSE
ACTION: Fetches if the user is logged in, then authenticate in the server.
RESULT: JSON & COOKIE