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.
16 lines
493 B
16 lines
493 B
2 years ago
|
using Biskilog_Accounting.Shared.ClientContractModels;
|
||
|
|
||
|
|
||
|
namespace Biskilog_Accounting.Shared.Interfaces
|
||
|
{
|
||
|
public interface ITokenService
|
||
|
{
|
||
|
bool ValidateToken(string a_token);
|
||
|
string GenerateToken(Userauth a_user, Contract a_clientContract, Databasemap a_database, Siteaccesspermission a_accessPermission);
|
||
|
int? GetRoleFromToken(string a_token);
|
||
|
int? GetUserIdFromToken(string a_token);
|
||
|
string? GetUserNameFromToken(string a_token);
|
||
|
|
||
|
}
|
||
|
}
|