get_basic_auth
get_basic_auth
Get basic authentication credentials. If no password has been configured, a random URL-safe password is generated (32 bytes of entropy, ~43 characters) and stored on the instance.
Returns
tuple[str, str] — A tuple of (username, password). The username defaults
to "signalwire" if not explicitly set.
Auto-generated passwords change on every instantiation. In production, always set
SWML_BASIC_AUTH_PASSWORD explicitly so webhook credentials remain stable across
restarts.