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
Linmei
Linmei15mo ago
And yes, the module augmentation is indeed implemented
Linmei
Linmei15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
aditya
aditya15mo ago
happened with me too Redo the setup again it'll work
bmariano
bmariano15mo ago
Redoing the setup is not working for me, any solution?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
nexxel
nexxel15mo ago
cc @julius @cje
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
julius
julius15mo ago
Can you open an issue at neztaurh? (Or pr?
julius
julius15mo ago
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...
cje
cje15mo ago
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.
cje
cje15mo ago
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...
Linmei
Linmei15mo ago
pnpm install next-auth@"4.21.1"
pnpm install next-auth@"4.21.1"
should now work fine @cje @nexxel could you guys update the next-auth version in the ct3a?