Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Wait for token to be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Aug 4, 2020
1 parent 170ba99 commit cf4a8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_staart/rest/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const login = async (
if (!user.password) {
await mail({
template: Templates.LOGIN_LINK,
data: { ...user, token: loginLinkToken(user) },
data: { ...user, token: await loginLinkToken(user) },
to: email,
});
return { success: true, message: "login-link-sent" };
Expand Down

0 comments on commit cf4a8fd

Please sign in to comment.