onSuccess abstract method

Future<void> onSuccess(
  1. String? newAccessToken
)

Call this method after retrieving a new token.

In case when app decides not to refresh the session for the user, they should call this with newToken as null.

Implementation

Future<void> onSuccess(String? newAccessToken);