West side ⁉
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Nate Vukovich on 10/16/2023 in #questions
Next Auth + Create T3 App ( appDir )
Have you found a way?
6 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
So here's what I've got to know after a bit of investigation:
With the new app directory, T3 would create you an app that won't pass
res
to TRPC, this you can't modify the response.
This would affect many libraries such as Lucia and iron-session as they require access to res
(to modify headers and add appropriate cookies)15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
switched back to iron-session
still same issue persists, opts.res is undefined?! for some reason
15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
too bad
15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
I was giving lucia a try
15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
cookies but I have changed the stack once againn
15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Yep, I honestly was trying to do it for
Lucia
but had no luck
ended up using a casual api route for logging in/out, and tRPC for everything else.15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Interesting, options.res is undefined for some reason from tRPC
Although would check why sometime
15 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
indeed now I do 😁
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
Josh, thank you again, a ton.
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
Thank you cocaieena
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
done and it works beautifully
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
lmao
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
import { api } from "~/trpc/server";
?59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
Bet
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
Thank you a ton man, you're a good sport.
I'll upload the entire thing later this night, although the repo is private, you can send me your email 😄
59 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/24/2023 in #questions
T3 App directory: can't use tRPCs useQuery hook
This is a very valid example. Thank you, and excuse me I was a bit frustrated by the code after doing it for hours
59 replies