aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Interfaces
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 23:40:12 +0000
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 23:40:12 +0000
commitc12f31b70fbce8542c2d4e23b5f003d7488bb03f (patch)
treecb64f2775335cdd856e81ec9e8ba0bed93fa0985 /backend/api/api/Interfaces
parentbdabccc6e8f4d35085a4defe61c579ea0002f798 (diff)
parent7d7c18239582f8dcc5337a573c02033c0f5c3194 (diff)
Merge branch 'Guest-Koristik-Ispravka-FrontEnd' into 'redesign'
Merge See merge request igrannonica/neuronstellar!28
Diffstat (limited to 'backend/api/api/Interfaces')
-rw-r--r--backend/api/api/Interfaces/IAuthService.cs2
-rw-r--r--backend/api/api/Interfaces/IJwtToken.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/backend/api/api/Interfaces/IAuthService.cs b/backend/api/api/Interfaces/IAuthService.cs
index 9a109208..570ce0a4 100644
--- a/backend/api/api/Interfaces/IAuthService.cs
+++ b/backend/api/api/Interfaces/IAuthService.cs
@@ -5,7 +5,7 @@ namespace api.Services
public interface IAuthService
{
string Login(AuthRequest user);
- string Register(RegisterRequest user);
+ string Register(RegisterRequest user, string id);
string RenewToken(string token);
public string GuestToken();
}
diff --git a/backend/api/api/Interfaces/IJwtToken.cs b/backend/api/api/Interfaces/IJwtToken.cs
index 2afb6683..5c54e4e3 100644
--- a/backend/api/api/Interfaces/IJwtToken.cs
+++ b/backend/api/api/Interfaces/IJwtToken.cs
@@ -4,8 +4,8 @@ namespace api.Models
{
public interface IJwtToken
{
- string GenGuestToken();
- string GenToken(AuthRequest user);
+ string GenGuestToken(string id);
+ string GenToken(User user);
string RenewToken(string existingToken);
string TokenToUsername(string token);
public string TokenToId(string token);