Issue with Next-Auth DefaultSession module augmentation
Hi there, barely made a new t3 project. I am getting an error probably related to the module augmentation for users id.
Here is the error.
13 Replies
And yes, the module augmentation is indeed implemented
the project is pretty much raw t3 just installed using pnpm
the session object in the session callback is still using DefaultSession type but not the augmented one
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
happened with me too
Redo the setup again it'll work
Redoing the setup is not working for me, any solution?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
cc @julius
@cje
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Can you open an issue at neztaurh? (Or pr?
GitHub
fix: wrong types breaks module augmentation by juliusmarminge · Pul...
Fixes t3-oss/create-t3-app#1328
Seems like #7056 changed this type which breaks module augmentation.
NOTE:
It's a good idea to open an issue first to discuss potential changes.
Please make s...
we released a new version of create-t3-app that as next-auth pinned to the last working version. when next-auth merges the fix we'll unpin the package.
if you were having this problem with your existing app, i would recommend pinning next-auth to 4.20.1 and subscribing to https://github.com/nextauthjs/next-auth/issues/7132 to see when you can unpin it
GitHub
TypeScript issues in session callback · Issue #7132 · nextauthjs/ne...
Environment System: OS: macOS 13.1 CPU: (8) arm64 Apple M2 Memory: 604.00 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.1.0 - /usr/local/bin/node Yarn: 3.3.0 - /usr/local/bin/yarn npm: 8...
should now work fine
@cje @nexxel could you guys update the next-auth version in the ct3a?