interface AuthOptions

Options for authenticating with the router.

Properties

optional
username: string

Username for authentication (defaults to the dialect's default username)

password: string

Password for authentication

optional
forceLogin: boolean

Force re-authentication even if already logged in (defaults to true)

optional
dialect: Dialect

Firmware dialect to speak (defaults to gdprText)

optional
fetch: globalThis.fetch

Swappable fetch, for tests or non-standard HTTP stacks

Usage

import { type AuthOptions } from "mod.ts";