refreshSession method
Force refreshes the session including the user data in case it was updated in a different session.
Implementation
Future<GotrueSessionResponse> refreshSession() async {
final refreshCompleter = Completer<GotrueSessionResponse>();
if (currentSession?.accessToken == null) {
final error = GotrueError('Not logged in.');
return GotrueSessionResponse(error: error);
}
final response = await _callRefreshToken(refreshCompleter);
return response;
}