I'm trying and failing to set up iron-session + trpc in a T3 app. Anybody here ever do that?
I've been admiring T3 from afar and finally got a good reason to spin one up. NextAuth with all its convenience is fun, but not exactly fitting my needs for authentication and session management.
Been trying to switch gears and use
iron-session
+ my own DB solution, but I'm getting hung up on trying to integrate that into the trpc context as well as pass headers around to get access to the cookie ID to load. Found a pretty good github example of that (git::parkgang/trpc-iron-session), but it's using nextJS directly and including @trpc/next
in the flow, which is not baked into T3 app... and trying to move to it is making TS lose its mind (or maybe me).
Any ideas?1 Reply
I think I just found the roadmap: https://github.com/Sealis04/testironsession
That didn't work, walked around the block to get back to where I was .... Going to go back to the first package and see if I can pull some more out of there (trpc-iron-session)