jimpex
    Preparing search index...

    Type Alias EnsureBearerTokenErrorOptions

    The options for the error the middleware can generate.

    type EnsureBearerTokenErrorOptions = {
        message: string;
        response: unknown;
        status: number;
    }
    Index

    Properties

    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