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
After a successful login, authjs is not redirecting me to the callbackUrl or home page and stays on the login page. I couldn't find a solution for this.
Second Problem
Most websites prevent users from accessing pages like login or signup if they are already logged in. However, this functionality is not available in the library. If I want to implement this myself, the callbackUrl cookie becomes unnecessary and only a distraction. There is no way to delete this cookie or functionalities relevant to it, such as:
// This is added automatically to the object I return in the authorize callback of credentials provider
callbackUrl: 'http://localhost:3000/login?callbackurl=/'
I'm confused and just want to know how to stop the callbackUrl functionality of this library to implement my own version. The library's implementation is not working properly and seems to conflict with mine, which looks like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Problem
After a successful login,
authjs
is not redirecting me to thecallbackUrl
or home page and stays on the login page. I couldn't find a solution for this.Second Problem
Most websites prevent users from accessing pages like login or signup if they are already logged in. However, this functionality is not available in the library. If I want to implement this myself, the
callbackUrl
cookie becomes unnecessary and only a distraction. There is no way to delete this cookie or functionalities relevant to it, such as:I'm confused and just want to know how to stop the callbackUrl functionality of this library to implement my own version. The library's implementation is not working properly and seems to conflict with mine, which looks like this:
Beta Was this translation helpful? Give feedback.
All reactions