Table of Contents

Class TokenRefresh

Namespace
Supabase.Gotrue
Assembly
Supabase.Gotrue.dll

Manages the auto-refresh of the Gotrue Session.

public class TokenRefresh
Inheritance
TokenRefresh
Inherited Members

Constructors

TokenRefresh(Client)

Sets up the TokenRefresh class, bound to a specific client

public TokenRefresh(Client client)

Parameters

client Client

Fields

Debug

Turn on debug logging for the TokenRefresh

public bool Debug

Field Value

bool

Methods

ManageAutoRefresh(IGotrueClient<User, Session>, AuthState)

Turns the auto-refresh timer on or off based on the current auth state

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

Parameters

sender IGotrueClient<User, Session>

The Client and Session data

stateChanged Constants.AuthState

Exceptions

ArgumentOutOfRangeException