Mattèo
Mattèo
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Mattèo on 1/16/2024 in #questions
How to authenticate users on a dynamic sudomain (next-auth)
Hey ! Hope you're doing well, I'm working on a project and I try to implement authentication on multiple domain with next-auth and Next.js Pages router. Here is a basic schema : - app.localhost:3000 (Admin only subdomain for managing the app, authentication needed) - [tenant].localhost:3000 (Authentication needed here using next-auth) Can someone help me with this. Currently, I got it working but I can't access session while i'm calling useSession from [tenant].localhost:3000. My NEXTAUTH_URL is http://app.localhost:3000
5 replies
TTCTheo's Typesafe Cult
Created by Mattèo on 3/6/2023 in #questions
Best ways to render a React component conditionally with Next (based on build time conditions)
1 replies
TTCTheo's Typesafe Cult
Created by Mattèo on 3/6/2023 in #questions
How to use react-query with the create-t3-app starter (non-TRPC call) ?
Hey ! I wanted to know if someone know how to use react-query with the create-t3-app starter. The starter seems to use react-query but there is no QueryClientProvider in the _app.tsx.
6 replies
TTCTheo's Typesafe Cult
Created by Mattèo on 3/3/2023 in #questions
What are the best ways to use TRPC procedures in getStaticProps ?
I wanted to know how can I use procedures made on my router from getStaticProps method
3 replies