No OnAuthenticationRequired event on JsonHttpClient

Hi

I was wondering why there is no OnAuthenticationRequired event on the JsonHttpClient?
How would you handle this?

Because JsonHttpClient is async it would require a different signature that returns a Task and we wanted to avoid implementing unnecessary constructs where it’s not needed. If you’re using JWT’s you can use the new RefreshToken property instead.

Ok thanks! I am using JWT and in the meantime using the RefreshToken, but even the RefreshToken can expire. Before I saved uid/pwd or apikey to re-authenticate.

FYI When the RefreshToken expires it throws a RefreshTokenException.