Table of Contents

Interface IGotrueSessionPersistence<TSession>

Namespace
Supabase.Gotrue.Interfaces
Assembly
Supabase.Gotrue.dll

Interface for session persistence. As a reminder, make sure you handle exceptions and other error conditions in your implementation.

public interface IGotrueSessionPersistence<TSession> where TSession : Session

Type Parameters

TSession

Methods

DestroySession()

Destroys the session in the persistence implementation. Usually this means deleting the session file or clearing local storage.

void DestroySession()

LoadSession()

Loads the session from the persistence implementation. Returns null if there is no session.

TSession? LoadSession()

Returns

TSession

SaveSession(TSession)

Saves the session to the persistence implementation.

void SaveSession(TSession session)

Parameters

session TSession