onUnauthorized

Default handler for authentication failures.

A route-level onUnauthorized passed to io.ktor.server.auth.authenticateWith overrides this handler. If both are null, API key authentication sends the default challenge described by this configuration.

Report a problem