I am using Next Auth v5. I want to pass in the user’s timezone on login so that I can have the timezone in SSR pages that are timezone sensitive. I can’t figure out how to pass custom data into NextAuth.
I have my own sign in page where I call the signIn
function. I have tried passing in the timezone there as well as appending it to my callback url. The problem is I can’t figure out how to access it in my jwt nor session callbacks.
Is this even possible to do? If not, what would be a better way to get the client’s timezone into the session.
Thanks.