User Tools

Site Tools


docs:api:refreshtoken

RefreshToken

public static string RefreshToken

Summary:

  • Returns the refresh token used to reauthenticate the user.
  • Calls GetAuthValue(“refresh_token”, FlattenedAuthUserdata);

The flattened Auth User Data is a dictionary that holds all the values that were found in the supabase user session data, when the user logged in. A list off all this data cann be found in the supabase tools, under the LWT Editor Window

int refreshTime = 3300;
if(int.TryParse(LivelyWebGL.Supabase.Auth.Session.AccessTokenExpiry, out refreshTime)){
    refreshRoutine = StartCoroutine(LivelyWebGL.Supabase.Auth.Session.AutoRefreshRoutine(
        supabasePreset, LivelyWebGL.Supabase.Auth.Session.RefreshToken, refreshTime-60, // allow for 1 minute of buffer time
        (data) => {
            SaveAuthLoginCredentials();
        }));
}
docs/api/refreshtoken.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki