diff options
| author | transtrike <transtrike@gmail.com> | 2021-02-27 11:18:09 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-02-27 11:18:09 +0200 |
| commit | 83ae76a1b93c91cf7cfb5fc9ea1ef728ee47c839 (patch) | |
| tree | 78711c29342fc3d5b5e643403a507c9b030afa4d /src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs | |
| parent | 784b5fc621f71fa94eddf276b0b932ba7d1aa873 (diff) | |
| download | DevHive-83ae76a1b93c91cf7cfb5fc9ea1ef728ee47c839.tar DevHive-83ae76a1b93c91cf7cfb5fc9ea1ef728ee47c839.tar.gz DevHive-83ae76a1b93c91cf7cfb5fc9ea1ef728ee47c839.zip | |
JWT Validations works; Introduced more bugs to fix later
Diffstat (limited to 'src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs')
| -rw-r--r-- | src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs b/src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs new file mode 100644 index 0000000..d2f1756 --- /dev/null +++ b/src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; + +namespace DevHive.Common.Jwt.Interfaces +{ + public interface IJwtService + { + string GenerateJwtToken(Guid userId, string username, List<string> roleNames); + bool ValidateToken(string authToken); + } +} |
