Skip to content

Commit

Permalink
signup return also userid
Browse files Browse the repository at this point in the history
  • Loading branch information
Szotkowski committed Sep 26, 2023
1 parent 950c4ee commit 8b4a138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class UserController {
},
})
credentials: UserCredentials,
): Promise<string> {
): Promise<{token: string, userId: number}> {
validateCredentials(
_.pick(credentials, ['email', 'password0', 'password1', 'username']),
);
Expand Down Expand Up @@ -257,7 +257,7 @@ export class UserController {
expiresIn: 60,
algorithm: 'HS256',
});
return token;
return {token: token, userId: userId};
}

@post('/save-Wrapped-DEK', {
Expand Down

0 comments on commit 8b4a138

Please sign in to comment.