Session gets undefined when navigate to other page and come back in Next-Auth
Unanswered
Santhosh Prabhakaran posted this in #help-forum
I'm using Next-auth for authentication of the user in my Next JS 13 application. After user gets sign in, the session is created. But when I navigates to any other tab in the browser or refresh the page, the session gets undefined. It is not persisting till I sign out.
I'm using client side session values,
And I'm using credentials provider for mu authentication.
Why is this happening ? Any help on this would be appreciated.
I'm using client side session values,
const { data: session, status } = useSession()And I'm using credentials provider for mu authentication.
Why is this happening ? Any help on this would be appreciated.