Table of Contents

Class PersistenceListener

Namespace
Supabase.Gotrue
Assembly
Supabase.Gotrue.dll

Manages the persistence of the Gotrue Session. You'll want to install a persistence listener to persist user sessions between app restarts.

public class PersistenceListener : IGotruePersistenceListener<Session>
Inheritance
PersistenceListener
Implements
Inherited Members

Constructors

PersistenceListener(IGotrueSessionPersistence<Session>)

Create a new persistence listener

public PersistenceListener(IGotrueSessionPersistence<Session> persistence)

Parameters

persistence IGotrueSessionPersistence<Session>

Properties

Persistence

The persistence implementation for the client (e.g. file system, local storage, etc).

public IGotrueSessionPersistence<Session> Persistence { get; }

Property Value

IGotrueSessionPersistence<Session>

Methods

EventHandler(IGotrueClient<User, Session>, AuthState)

If you install a persistence listener, it will be called when the user signs in and signs out.

public void EventHandler(IGotrueClient<User, Session> sender, Constants.AuthState stateChanged)

Parameters

sender IGotrueClient<User, Session>
stateChanged Constants.AuthState

Exceptions

ArgumentException
ArgumentOutOfRangeException