Type alias BearerAuth

BearerAuth: { token?: string; type: "bearer" }

Authentication that is encoded for HTTP Bearer Auth, that is by passing the header Authentication: Bearer <token> to the server. This is most commonly used for JWT-based authentication Not possible for WebSocket authentication from the browser, due to browser WebSocket connections not being able to pass arbitrary headers

Type declaration

  • Optional token?: string
  • type: "bearer"

Generated using TypeDoc