this method used in the video should attach the isAdmin to the useSession result. Anything set on the session callback will show up when using the session data next-auth.js.org/configuration/callbacks#session-callback
@@monroeprograms thankyou however when I tried to attach the role itself to my T3 app, is says the role is undefined, I also cannot access it through ctx in a protected trpc route
Nice job with the thumbnails man! 👌Good luck with the channel, really enjoy your content! :)
Nice
How would one attach isAdmin to the useSession within our NextJS application?
this method used in the video should attach the isAdmin to the useSession result. Anything set on the session callback will show up when using the session data
next-auth.js.org/configuration/callbacks#session-callback
@@monroeprograms thankyou however when I tried to attach the role itself to my T3 app, is says the role is undefined, I also cannot access it through ctx in a protected trpc route