Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Dart Reference v2.0

Retrieve a new session

  • This method will refresh and return a new session whether the current one is expired or not.

final AuthResponse res = await supabase.auth.refreshSession();
final session = res.session;