challenge

Specifies a response sent to the client if authentication fails.


fun challenge(redirectUrl: String)
fun challenge(redirect: Url)

Specifies a redirect URL in a case of failed authentication.