TokenController class This class is responsible for handling the token routes in the API.

Constructors

Methods

  • Get data from the access token

    Parameters

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

      The request object

    • res: Response<any, Record<string, any>>

      The response object

    Returns Promise<void>

    The data from the access token

  • Refresh the access token

    Parameters

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

      The request object

    • res: Response<any, Record<string, any>>

      The response object

    Returns Promise<void>

    The result of the token refresh

  • Validate the access token

    Parameters

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

      The request object

    • res: Response<any, Record<string, any>>

      The response object

    Returns Promise<void>

    The result of the token validation