Create the controller that handles authentication
The express application used to register a new route for this controller
The express application used to register a new route for this controller
The express router
Handle all 404 routes.
Must be called after every controller registration.
Register this controller routes
Use Google OAuth as auth provider
Login in a user and generate its token
Register a new user and generate its token
Decodes the information about the given token
Return true if the given token is valid
The authentication middleware. Populate the request.body with the ServerDefaults.authUserBodyPropertyName property containing the token user
Return true if the given token is valid, false otherwise
Generate a new token for the given User
Generated using TypeDoc
The Auth controller