SiiR
TTCTheo's Typesafe Cult
•Created by SiiR on 7/3/2024 in #questions
NextJS Server Actions
Anyone with experience using react query or type safe actions with nextjs? I'm looking for a bit of insight. It's been a while since I've used Next and I'm working on a project to understand it. I'm using the type safe actions lib and I'm curious about how something like a search feature would be implemented. I currently have server setup to run a server side action (not using tsa) by updating the route path with the search as a search param. The curiosity is, if I use TSA or even if I switched over to React Query, this would be a client side render, does that that defeat the point of Next being SSR?
2 replies
TTCTheo's Typesafe Cult
•Created by SiiR on 8/19/2023 in #questions
Signup & Next Auth
Hey all! I'm new to sign up and Next Auth and had a question about handling both. I'm using T3 Stack for my app and have a signup form setup and working. I'm wondering when it comes to signin, I query the DB with the user input, if successful should I be using Next Auth Email Provider or Credentials Provider? There are a ton of guides out there for Next Auth but pretty much all of them cover OAuth and not handling email/password signup/login.
I like the MFA provided by Next Auth Email Provider so it'd be nice to keep and and not have to build it from scratch
146 replies