Louis
Louis
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Wiznet on 1/17/2024 in #questions
Next-auth.js: Redirect to custom URL after successful login.
This response on stack overflow might be what you're looking for? https://stackoverflow.com/questions/66780188/how-to-return-a-page-when-login-is-success-in-nextauth
7 replies
TTCTheo's Typesafe Cult
Created by cidit on 12/10/2023 in #questions
im having trouble setting up trpc w/ websockets on latest t3...
I've made a similar post asking for help but didn't get much response, it's great to see responses on this post! Regarding your project, are you using pages or app router? If it's app router with T3, are you using next auth in your context? I've been trying to figure out how to get the websocket server to run because of an issue caused by next auth since the session is called via context.
56 replies
TTCTheo's Typesafe Cult
Created by iboughtbed on 1/3/2024 in #questions
Any react markdown editors like in GitHub?
TipTap does the job, along with ShadCN Ui to make it look Gucci. https://tiptap.dev/docs/editor/introduction
4 replies
TTCTheo's Typesafe Cult
Created by Louis on 11/28/2023 in #questions
T3 App Router and tRPC Subscriptions - Help/Advice Needed!
sorry I've not. I'm looking at other options like implementing a websocket server for trpc createWSClient.
4 replies
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
If you're worried about performance, you could store the permission set in a cache, either in memory or redis. This would be quicker than hitting a db with every verify flag in context.
5 replies
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
Also you'll have access to the url/route, use regex with a capture group to capture Facility B, foo, bar, blah etc. to use in your permission logic.
5 replies
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
Just an idea, store some kind of flag in context, you can then filter out most of the calls that don't need to verify the users permissions.
5 replies
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
Side note, Theo mentioned that he wanted to create a video tutorial using the app router that followed a similar pattern to his t3-next12 video.
9 replies
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
I had an issue when tryign to follow tRPC's guide on subscriptions, passing createContext into the ws-server created the error: DiscordProvider is not a function. Did anyone manage to run a ws-server?
9 replies