• Checks authentication of a message from the client

    Returns

    Pair of [boolean, Authentication | undefined], where the boolean is whether the user is authenticatd, and the Authentication is the parsed authentication information if extractable

    Parameters

    • incoming: IncomingMessage

      IncomingMessage from the 'http' server

    • Optional metaAuth: Authentication

      Description of the authentication scheme created in your API Meta definition. See {@linke estuary-rpc!Authentication} for specific types of authentication supported

    • Optional authenticate: ((authentication: Authentication) => boolean)

      Method defined in ServerOpts that should be implemented to actually check the authentication against whatever database/backend/authorization scheme you have

    Returns [boolean, Authentication | undefined]

Generated using TypeDoc