Type alias HeaderAuth

HeaderAuth: { keyPair: [string, string] | [string]; type: "header" }

Authentication that gets encoded into an arbitrary cookie. Not possible for WebSocket authentication from the browser, due to browser WebSocket connections not being able to pass arbitrary headers. {type:"header", keyPair: ["X-My-Auth", "My Secret"]} would be encoded as the header value

X-My-Auth:My Secret

Type declaration

  • keyPair: [string, string] | [string]
  • type: "header"

Generated using TypeDoc