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.

    '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.

    401