reAuthorizeOnResponse

fun reAuthorizeOnResponse(block: suspend (HttpResponse) -> Boolean)

Sets a custom function to control whether a response is unauthorized and should trigger a refresh / re-auth.

Use this to change the value of isUnauthorizedResponse.

Report a problem