@darthcav/ts-http-server
    Preparing search index...

    Type Alias TokenVerifier

    TokenVerifier: (authorizationHeader: string | undefined) => Promise<boolean>

    Async function that verifies a bearer token from the Authorization header.

    Return true to allow the request, false to reject it with the default 401 response, or throw to surface a custom error.

    Type Declaration

      • (authorizationHeader: string | undefined): Promise<boolean>
      • Parameters

        • authorizationHeader: string | undefined

        Returns Promise<boolean>