aboutsummaryrefslogtreecommitdiff
path: root/Backend/Api/Api/Interfaces/IJwtService.cs
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-10-27 21:09:08 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-10-27 21:09:08 +0200
commite24cede22468991ad8452fbf1eec139e1b5ff886 (patch)
tree1db6c5c83e48c4d0a62878528775ed31255afbe9 /Backend/Api/Api/Interfaces/IJwtService.cs
parent0882a4220556bdc271117b88098f51494055d847 (diff)
Napravljen servis za generisanje jwt tokena. Omoguceno koriscenje autentikacija.
Diffstat (limited to 'Backend/Api/Api/Interfaces/IJwtService.cs')
-rw-r--r--Backend/Api/Api/Interfaces/IJwtService.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Backend/Api/Api/Interfaces/IJwtService.cs b/Backend/Api/Api/Interfaces/IJwtService.cs
new file mode 100644
index 0000000..075ea6c
--- /dev/null
+++ b/Backend/Api/Api/Interfaces/IJwtService.cs
@@ -0,0 +1,9 @@
+using Api.Models;
+
+namespace Api.Interfaces
+{
+ public interface IJwtService
+ {
+ Task<string> GenToken(User user);
+ }
+} \ No newline at end of file