BasicAuth: { password?: string; type: "basic"; username?: string }

Authentication that is encoded for HTTP Basic Auth, that is by first encoding ${username}:${password} into Base64, and then passing the header Authentication: Basic ` to the server Not possible for WebSocket authentication from the browser, due to browser WebSocket connections not being able to pass arbitrary headers

Type declaration

  • Optional password?: string
  • type: "basic"
  • Optional username?: string

Generated using TypeDoc