-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description
Environment
System:
- OS: macOS 13.4.1
- CPU: (8) arm64 Apple M1
- Memory: 274.78 MB / 8.00 GB
- Shell: 3.6.1 - /opt/homebrew/bin/fish
Binaries:
- Node: 18.12.1 - ~/.local/share/nvm/v18.12.1/bin/node
- npm: 8.19.2 - ~/.local/share/nvm/v18.12.1/bin/npm
- pnpm: 8.6.7 - /opt/homebrew/bin/pnpm
Browsers:
- Chrome: 115.0.5790.114
- Safari: 16.5.2
Reproduction URL
https://github.com/Natchii59/next-chat
Describe the issue
I would like to update my JWT data, and for that I need to put the SessionProvider
at the root of the page. To then use the useSession
which gives access to the update
function. The problem is that it creates 2 calls to the jwt and session callbacks each time the page is refreshed. How to fix this?
How to reproduce
Add a SessionProvider
to the project and put a console.log
in a NextAuth options callback.
Expected behavior
I wish I didn't have callbacks double call with a SessionProvider
. Or another way to update my JWT data without using SessionProvider
.
omarnasir, sjungling, GSTJ, gustavomorinaga, nahidtopalovic and 1 more
Metadata
Metadata
Assignees
Labels
triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.