mongodb-labs/full-stack-fastapi-mongodb

"Phantom Login" On generated app with magic link sign up

Closed this issue · 1 comments

When attempting to log into a generated app, there are times where the frontend react state believes it has logged in, however, there is no auth token, nor profile data for a logged in user. The incorrect state leaves functionality "clickable" yet fails.

The believed issue stems from the auth.ts file not having completed error handling on cases where the response payload from the backend fails. Adding in errorhandleres on every function in those should resolve this problem.