validateBasicAuth
Lifecycle hook for custom basic-auth validation. The default implementation
returns true. Subclasses can override this to add secondary validation logic
(e.g., database lookups, external identity providers).
This hook is defined but not yet called by the built-in Hono basicAuth
middleware. The middleware currently validates credentials directly against the
stored username/password pair. Overriding this method will have no effect on
request authentication in the current SDK version. It is reserved for future
integration.
Parameters
username
Username extracted from the incoming request’s Authorization header.
password
Password extracted from the incoming request’s Authorization header.
Returns
boolean | Promise<boolean> — true if the credentials are valid, false to
reject the request.