Error: failed to fetch user profile

Looks like your /callback redirects back to login screen, creating a login loop. You get correct JWT in response, cookies all set up correctly, session is in place. My only guess would be that there’s a redirect to login screen. Could you check this please? Alsom console logging user object first thing in the passport.authenticate of callback route could provide some clues as well.

1 Like