Flutter: currentSession

Returns the session data, if there is an active session.

Examples

Get the session data

final Session? session = supabase.auth.currentSession;

Get the session data, refreshing if needed

final session = await supabase.auth.getSession();