How to call t3stack endpoints from outside of project

I need to call t3 stack project project endpoints from react native project. I tried create-t3-turbo repo. But scaling this architecture seems troublesome and slow for me. I'm desperate at this point. Please help me xD @Josh
6 Replies
Josh
Josh11mo ago
Ah, what did you use as your authentication layer Unfortunately this problem is not an easy one and is going to require some solid engineering And this is not specific to t3, this is generally going to be a problem no matter what boilerplate you use
dolgoonnn
dolgoonnn11mo ago
Oh you seems get it wrong here. What we are discussing back in tech discussion is right calling endpoint of t3 stack from react native project
Josh
Josh11mo ago
What If you're not using authentication then calling endpoints should be as simple as referencing the trpc react native docs If you are using authentication, it's a hell of a lot more work
dolgoonnn
dolgoonnn11mo ago
I see what you are talking. Yeah i need to use jwt authentication in some endpoint
dolgoonnn
dolgoonnn11mo ago
I think this library is solution and here is example with protected route https://github.com/jlalmes/trpc-openapi#authorization
GitHub
GitHub - jlalmes/trpc-openapi: OpenAPI support for tRPC 🧩
OpenAPI support for tRPC 🧩. Contribute to jlalmes/trpc-openapi development by creating an account on GitHub.
Yiannis
Yiannis11mo ago
If you use expo with clerk it s quite straightforward I exclusively use clerk because of its expo support
Want results from more Discord servers?
Add your server