Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using SharepointToolbox.Web.Core.Models;
|
||||
|
||||
namespace SharepointToolbox.Web.Services.Session;
|
||||
|
||||
/// <summary>Stores OAuth tokens in ProtectedSessionStorage (browser-side, encrypted).
|
||||
/// Nothing written to server disk.</summary>
|
||||
public interface ISessionCredentialStore
|
||||
{
|
||||
Task<SessionTokens?> GetAsync();
|
||||
Task SetAsync(SessionTokens tokens);
|
||||
Task UpdateRefreshTokenAsync(string newRefreshToken);
|
||||
Task ClearAsync();
|
||||
Task<bool> HasCredentialsAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user