refresh method
Exchanges a rotating refresh token for a fresh pair.
Implementation
@override
Future<SessionTokens> refresh(SessionTokens current) async {
refreshCount += 1;
return (_onRefresh ?? (SessionTokens c) => throw StateError('no refresh'))(
current,
);
}