Next.js Discord

Discord Forum

NextAuth "session" callback is triggered everytime I change tab

Unanswered
Pacific herring posted this in #help-forum
Open in Discord
Pacific herringOP
I put a log inside the callback:
callbacks: {
        async session({ session, token }: any) {
            // CODE BLA BLA BLA BLA BLA
            console.log("session callback")
            return session;
        },
    },


and i noticed that everytime I tab out from my browser to whatever app and tab back in the browser, I get the log "session callback". Is it normal behavior? I'm running some checks in there.

1 Reply

Pacific herringOP
up