Trouble getting additional information passed back on the useSession sessionData

I am new to these techs and trying to get a first project working. I am using the Discord auth. I have logged the user.id on the sessionData from useSession but it does not match the discord id of the user. I enabled debugging and can see that the 'OAUTH_CALLBACK_RESPONSE' contains a profile property with the id I am looking for inside of it. I have poked around docs and found a few tutorials on how to add additional attributes to the session but no luck. Can anyone point me in the right direction?
2 Replies
tawaliou
tawaliou2y ago
Hi If i understand you, you want to add new properties to your session data sent to the front. If it's the issue, there are few steps you can do (i publish an article on it):
tawaliou
tawaliou2y ago
check this: https://tawaldevuniverse.hashnode.dev/some-tips-when-using-t3-stack-nextauth-and-models-types in ths example I add username to session data, you can follow it and add the data you want
Tawal Dev Universe
Some tips when using T3 Stack: NextAuth and Models types
May be these tips are not specifically related to T3 Stack but concern the stacks it uses
Want results from more Discord servers?
Add your server