#Store Access Token for future app launches
1 messages · Page 1 of 1 (latest)
Or should I store it encrypted locally myself 🤔
Hi!
Yes, the asset does store the AT and RT, when AutoRefresh is enabled.
In this case, the OnAuthenticationFinished callback is called immediately after the token is refreshed, which is done on Start with one frame delay to allow all game logic to initialize.
If your application needs to know if a token is stored at all, you can check PlayerPrefs:
string refreshToken = PlayerPrefs.GetString("Firesplash.TwitchAuthentication.Store." + UniqueIdentifier + ".RT", "");
string accessToken = PlayerPrefs.GetString("Firesplash.TwitchAuthentication.Store." + UniqueIdentifier + ".AT", "");
But as you can see, it is not stored in encrypted form.