Benja
Benja
TTCTheo's Typesafe Cult
Created by Benja on 12/25/2023 in #questions
Web + Mobile + tRPC API
In theory, we should be able to make a NextJS + tRPC project and also use the endpoints from other places like a full mobile App made in React Native. I could make the Firebase auth connections with Next Auth and adapters work. Also use the admin sdk on the tRPC backend. But how I am supposed to handle auth from a RN app to use protected endpoints? Is there any boilerplate, tutorial or example to do this ? SEO is working so the endpoints can be called from outside the web project. I don't aiming to use turbo repo for making the web/app/trpc integracion, just web/trpc and mobile separately
2 replies
TTCTheo's Typesafe Cult
Created by Benja on 4/23/2023 in #questions
Layout management - T3 Stack - Next.js v13
Im struggling with layout usage. Can't fugure out how to implement it well using the create T3 app starting point. Basically im creating a admin section that will have lets say 4 sub sections ( ...url.../admin/user, .../settings, .../dashboard, etc) and the subsections will be in the content of an admin layout that should persist states like active section but I couldn't find a workaround for this. On React.js i used to use react router dom and just setting the Outlet as children of the layout and thats all. As i read in next js docs, v13 beta has a better management on layouts but idk how to migrate from the t3 stack template to that struture to get what im looking for. Has anyone faced the same difficulty ?
24 replies