Options
All
  • Public
  • Public/Protected
  • All
Menu

Module routes/login

Index

Functions

  • getRouter(): express.Router
  • Gets the router for all /login/ related endpoints.

    Returns express.Router

    An Express.js {@link express.Router} routing all /login/ endpoints.

  • login(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<Responses.Login>
  • Attempts to log a user into the system.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express.js request to extract all required data from.

    Returns Promise<Responses.Login>

    See the API documentation. Successes are passed using Promise.resolve, failures using Promise.reject.

  • logout(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<Responses.Empty>
  • Attempts to log a user out of the system.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express.js request to extract all required data from.

    Returns Promise<Responses.Empty>

    See the API documentation. Successes are passed using Promise.resolve, failures using Promise.reject.

Generated using TypeDoc