ref
This commit is contained in:
1 parent
dc5ca4b1c6
commit
24dc1fe615
5 files changed
+63
-62
No files matched your search
+4
-1
@@ -56,7 +56,10 @@ func Login(authRequest structure.AuthRequest) (*structure.Auth, error) {
|
||||
return nil, status.New(codes.Unauthenticated, "Email or password is incorrect").Err()
|
||||
}
|
||||
|
||||
tokenString, expired := token.GetToken(string(user.Id))
|
||||
tokenString, expired, err := token.GetToken(string(user.Id))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &structure.Auth{
|
||||
Token: tokenString,
|
||||
Expired: expired,
|
||||
|
||||
Reference in new issue
Block a user