Tells why the user was signed out. Read it while handling AuthState.SignedOut.
SignOutReason.UserInitiated is an explicit call to SignOut().SignOutReason.SessionExpired is a session the server rejected, for example when a refresh token is no longer valid.SignOutReason.SessionMissing is a stored session that could not be restored when the client loaded.null while a user is signed in, and when the client cannot tell why no user is signed in.supabase.Auth.AddStateChangedListener((sender, changed) =>
{
if (changed == AuthState.SignedOut && sender.SignOutReason == SignOutReason.SessionExpired)
{
ShowSessionExpiredNotice();
}
});