refreshSession method
Refresh the current session
Implementation
Future<bool> refreshSession() async {
try {
final response = await client.auth.refreshSession();
if (response.session != null) {
_saveUserSession(response.session!);
}
return true;
} catch (e) {
logFatal('Problems refreshing session: $e');
}
return false;
}