Skip to content

Commit

Permalink
chore(app): add logs to email req
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Feb 12, 2024
1 parent a4e7d13 commit b2240da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/(auth)/signin/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export const actions: Actions = {
body: `Sign in: ${PUBLIC_APP_URL}/verify?token=${code.id}`
})
});
console.log(emailRequest);
const response = (await emailRequest.json()) as { success: boolean };
console.log('>>>EMAIL_RESPONSE', response);
if (!response.success) return error(500, 'Bad Plunk request');
return redirect(302, '/signin?success=true');
}
Expand Down

0 comments on commit b2240da

Please sign in to comment.