You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
872 B
23 lines
872 B
2 years ago
|
using Biskilog_Cloud.Shared.ClientContractModels;
|
||
|
using Biskilog_Cloud.Shared.Enums;
|
||
|
|
||
|
namespace Biskilog_Cloud.Shared.Interfaces
|
||
|
{
|
||
|
public interface ITokenService
|
||
|
{
|
||
|
AuthEnums ValidateToken(string a_token);
|
||
|
string GenerateToken(Userauth a_user, Contract a_clientContract, Databasemap a_database, List<string> a_business, bool a_comparison);
|
||
|
int? GetDatabaseIdFromToken(string a_token);
|
||
|
int? GetUserIdFromToken(string a_token);
|
||
|
string? GetUserNameFromToken(string a_token);
|
||
|
string? GetBaseBranch(string a_token);
|
||
|
bool? GetComparison(string a_token);
|
||
|
IEnumerable<string> BranchIds(string a_token);
|
||
|
string? GetAllBranch(string a_token);
|
||
|
Task SetToken(string a_token, bool a_remember);
|
||
|
Task<string> GetToken();
|
||
|
Task ClearToken();
|
||
|
Task<bool> IsTokenSet();
|
||
|
}
|
||
|
}
|