Sofiane
TTCTheo's Typesafe Cult
•Created by Sofiane on 8/29/2023 in #questions
redirect with withAuth middleware
my goal is to be able to check the user role and redirect to a custom page but as i can see you can just return true or false and when you return false you get redirected to the signin page
2 replies
TTCTheo's Typesafe Cult
•Created by Sofiane on 8/28/2023 in #questions
How to access Next Auth session or jwt from axios interceptor
my goal is to add the authorization header on the interceptor without doing it manually on every request except the function getServer() returns null and useSession is only used on the client obviously and the getServerSession needs access to the context
2 replies
TTCTheo's Typesafe Cult
•Created by Sofiane on 4/27/2023 in #questions
Global loading
Is there a way where i can get a global loading state from trpc context?
1 replies
TTCTheo's Typesafe Cult
•Created by Sofiane on 4/18/2023 in #questions
Eslint bug or am I missing something ?
21 replies