Initial commit

This commit is contained in:
rudder
2026-08-12 14:04:55 +03:00
commit 8cf738d9f0
124 changed files with 5433 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
namespace RudderSdk.Core.Abstractions;
/// <summary>
/// Persists the session token pair. The default is <see cref="InMemoryTokenStore"/>;
/// games should provide a durable implementation (player prefs, keychain, ...).
/// </summary>
public interface ITokenStore
{
/// <summary>Returns the current access token, or null when signed out.</summary>
string? GetAccessToken();
/// <summary>Returns the current refresh token, or null when signed out.</summary>
string? GetRefreshToken();
/// <summary>Stores a fresh token pair.</summary>
void SaveTokens(string accessToken, string refreshToken);
/// <summary>Drops both tokens (logout / session expiry).</summary>
void Clear();
}