My Project 1.0
Open Source Encrypted Vault Storage
Loading...
Searching...
No Matches
ignivault.App.Services.TokenManager Class Reference
Inheritance diagram for ignivault.App.Services.TokenManager:
Collaboration diagram for ignivault.App.Services.TokenManager:

Public Member Functions

 TokenManager (ISessionStorageService sessionStorage)
async Task< string?> GetTokenAsync ()
 Gets the stored token, or null if no token is stored.
async Task SetTokenAsync (string? token)
 Sets the token to be stored. If null is passed, it clears the stored token.
async Task ClearTokenAsync ()
 Clears the stored token.

Detailed Description

Definition at line 7 of file TokenManager.cs.

Constructor & Destructor Documentation

◆ TokenManager()

ignivault.App.Services.TokenManager.TokenManager ( ISessionStorageService sessionStorage)
inline

Definition at line 12 of file TokenManager.cs.

Member Function Documentation

◆ ClearTokenAsync()

async Task ignivault.App.Services.TokenManager.ClearTokenAsync ( )
inline

Clears the stored token.

Returns

Implements ignivault.ApiClient.ITokenManager.

Definition at line 34 of file TokenManager.cs.

◆ GetTokenAsync()

async Task< string?> ignivault.App.Services.TokenManager.GetTokenAsync ( )
inline

Gets the stored token, or null if no token is stored.

Returns

Implements ignivault.ApiClient.ITokenManager.

Definition at line 17 of file TokenManager.cs.

◆ SetTokenAsync()

async Task ignivault.App.Services.TokenManager.SetTokenAsync ( string? token)
inline

Sets the token to be stored. If null is passed, it clears the stored token.

Parameters
token
Returns

Implements ignivault.ApiClient.ITokenManager.

Definition at line 22 of file TokenManager.cs.


The documentation for this class was generated from the following file:
  • C:/Users/prest/Desktop/GitHub/Ignivault/ignivault.App/Services/TokenManager.cs