Passwordless email verification link is not working as expected way

I’ve implemented passwordless email authentication with magic link, and when clicking the verification link in the email, it successfully verifies the user. However, instead of authorizing the user and redirecting them to the dashboard as expected, it redirects them back to the login screen

When using the Auth SDK function to check whether the user is authenticated, it incorrectly shows as false even after the verification link has successfully verified the user.

I am not sure what is the issue with verification link