setSession method
Sets the session data from refresh_token and returns the current session.
Implementation
Future<AuthResponse> setSession(String refreshToken) async {
if (refreshToken.isEmpty) {
throw AuthException('No current session.');
}
return await _callRefreshToken(refreshToken);
}