Skip to content

Commit aa501df

Browse files
committed
feat: logs
1 parent a261920 commit aa501df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/controllers/magicLinks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export async function pollMagicLinkConfirmation(req: Request, res: Response) {
147147
});
148148

149149
if (!record) {
150+
console.log('No magic link token');
150151
return res.status(500).json({ error: 'Invalid request' });
151152
}
152153

@@ -170,5 +171,5 @@ export async function pollMagicLinkConfirmation(req: Request, res: Response) {
170171
return res.status(200).json({ message: 'Success' });
171172
}
172173

173-
return res.status(500).json({ error: 'Invalid request' });
174+
return res.status(204).json({ error: 'Not verified.' });
174175
}

0 commit comments

Comments
 (0)