How to add more keys to session with next auth
how do i add more keys to the session which next auth creates
thank you
2 Replies
You can extend the default types of next auth by declaring a .d.ts file.
Something like this which is also used in t3stack iirc:
You can then assign these values at the callbacks in your [...nextauth].ts. Of course you should also add these params to your db
do u perhaps have a code base which uses this technique that i could reference? would be big help. even if not, thank you for the solution.
thank you, i figured it out!