Type alias EnsureBearerTokenErrorOptions

EnsureBearerTokenErrorOptions: {
    message: string;
    response: unknown;
    status: number;
}

The options for the error the middleare can generate.

Type declaration

  • message: string

    The error message for the response.

    Default

    'Unauthorized'
    
  • response: unknown

    Context information for the error handler and that can be added to the actual response.

  • status: number

    The HTTP status that will be added to the error context.

    Default

    401
    

Generated using TypeDoc