Authentication

Wri­teJw­t(userinfo)
The writeJwt function is responsible for generating and writing a JWT (JSON Web Token) secure cookie to the user's browser.
De­nyAc­ces­s
This function exits and returns a login required error.
Fla­gAc­tiv­ity
FlagActivity" flags suspicious request patterns to deter potential brute force attacks. After a set number of flagged requests from a single IP, it blocks that IP to protect the platform.
De­leteJw­t
The deleteJwt function is responsible for remove the current (if any) JWT (JSON Web Token) secure cookie from the user's browser.