-
-
Save explorer14/6fe0166b3d1bc07e695672d2fb2b6a16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A durable and secure place to store authentication token into and get out of | |
/// </summary> | |
public interface IAuthTokenRepository | |
{ | |
/// <summary> | |
/// Get the currently active auth token. Implementations MUST decide on the appropriate key | |
/// for the persistance record. The interface assumes that only one token will be returned | |
/// from the store. | |
/// </summary> | |
/// <returns><see cref="AuthToken"/></returns> | |
Task<AuthToken> GetCurrent(); | |
/// <summary> | |
/// Store the freshly generated auth token. Implementations MUST decide on the appropriate key | |
/// for the persistance record. | |
/// </summary> | |
/// <param name="token">The <see cref="AuthToken"/> to store</param> | |
/// <returns><see cref="Task"/></returns> | |
Task Save(AuthToken token); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment