Flutter: Set the session data

Parameters

Examples

Refresh the session

final refreshToken = supabase.currentSession?.refreshToken ?? '';
final AuthResponse response = await supabase.auth.setSession(refreshToken);

final session = res.session;