kfancy888
TTCTheo's Typesafe Cult
•Created by kfancy888 on 8/23/2024 in #questions
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?3 replies