Redirect is triggered before session is available
I have a custom signIn plugin, that allows me to sign in with an external auth provider. In the returned ctx of that endpoint, I set
Current behavior
The following only happens when logging in for the first time on a clean browser session without cache.
I sign in, and get redirected to
Expected behavior:
After signing in I get redirected to
Code
redirect: true and url: '/dashboard'. /dashboard has a check if there's an active session, if not, it will redirect to /.Current behavior
The following only happens when logging in for the first time on a clean browser session without cache.
I sign in, and get redirected to
/dashboard, but I immediately get redirected to /. I can successfully go back to /dashboard later. And when sign out and back in, I don't have this issue.Expected behavior:
After signing in I get redirected to
/dashboard and stay thereCode
