Skip to content

Commit

Permalink
fix(login): Use old login response body
Browse files Browse the repository at this point in the history
  • Loading branch information
wingio committed Oct 27, 2024
1 parent 4c3311c commit 2e66f87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rest/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default class AuthController {
const body = req.body as LoginBody;
const auth = await checkCredentials(body.email, body.password);

return { token: await generateToken(auth, true) };
return {
id: auth,
token: (await generateToken(auth, true)).full
};
}

@POST({
Expand Down

0 comments on commit 2e66f87

Please sign in to comment.