aboutsummaryrefslogtreecommitdiff
path: root/src/Common/DevHive.Common/Jwt/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/DevHive.Common/Jwt/Interfaces')
-rw-r--r--src/Common/DevHive.Common/Jwt/Interfaces/IJwtService.cs11
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);
+ }
+}