You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: res.json is not a function
at /app_path/node_modules/passport-magic-login/src/index.ts:105:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: res.json is not a function
at /app_path/node_modules/passport-magic-login/src/index.ts:109:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
It occurs right after sending the email with the MagicLink to the user.
I'm not sure if it could be related to this Issue since I'm also using Fastify (with NestJs).
EDIT: Using NestJs through Express, I don't get the above-mentioned error, so I understand that this is the reason for the failure.
Please change
res.json({ success: true, code: code });
to
res.send({ success: true, code: code });
to make it work on both express and fastify router
The text was updated successfully, but these errors were encountered: