C#: Retrieve a new session
Refreshes the current session and returns the new session data.
- Requires a signed-in user.
- The SDK refreshes tokens automatically in the background. Call this only when you need to force a refresh.
Examples
Refresh the session
var session = await supabase.Auth.RefreshSession();