Creates a new EnvConfig instance after validating and normalizing all inputs.
Configuration options (must include baseUrl).
StaticfromCreates an EnvConfig instance from environment variables (.env or process/Bun.env),
with optional overrides.
This static method calls loadEnv to read the environment, then applies
any overrides provided. It is the recommended way to instantiate configuration
in a production application.
Optionaloverrides: Partial<EnvConfigOptions>Partial options that take precedence over environment variables.
A fully validated EnvConfig instance.
Checks whether the stored credentials are likely usable.
true if both email and password are non‑empty strings and
the email contains an @ symbol (basic validity), otherwise false.
ReadonlybaseNormalized base URL (no trailing slash).
ReadonlyloginSanitized login path (no leading slash).
ReadonlylogoutSanitized logout path (no leading slash).
ReadonlyemailUser email address. May be empty string if not provided.
ReadonlypasswordUser password. May be empty string if not provided.
Validated and normalized configuration for authentication clients.
This class takes raw options (or environment variables) and ensures that:
Example
Example
Example
Since
0.1.1
See