Class TokenRefresh
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
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