Any way to share auth between a t3 app and a native iOS and android apps?

Hey guys, this is probably a noob question, but let my try and clarify the situation: Context: I have been building a web app using the t3 stack for a while now and I love it. Now I’m thinking about mobile, and I’m leaning towards making native mobile apps (iOS and android, not react native/expo) Why?: I’m a new developer so I wanna get some round experience to see what I like the most so I can know what to really focus on. Also (and most importantly) I need some native sdks for some camera things I need both apps doing. The problem? The auth setup. I noticed julius has been working on a branch on the t3 turbo that uses next auth for authentication on expo but I don’t see how that would help me. I have found certain libraries that manage sessions on each platform, but I think I need an authentication server? I was looking at express with passport but before I dive into anything and start learning something new I thought maybe I could ask some people with more experience that could maybe send me down the right path. Many thanks!
4 Replies
Pod
Pod2y ago
Theo - t3․gg
YouTube
We Fixed Mobile Dev
As a big fan of the T3 Stack, it's pretty dang cool we got it working on mobile. T3-TURBO-CLERK: https://github.com/clerkinc/t3-turbo-and-clerk James's YouTube: @James_Perkins http://youtube.com/@James_Perkins Create-t3-app: https://github.com/t3-oss/create-t3-app Create-t3-turbo: https://github.com/t3-oss/create-t3-turbo Julius's Twitter: ...
Yiannis
YiannisOP2y ago
Thanks for the quick response, but unfortunately this doesn’t really help me as clerk doesn’t have adaptors for swift and kotlin so I can’t use it with native apps
Pod
Pod2y ago
Ah sorry missed that part. Yeah, you'd probably have to use passport or a similar library and handle all the auth workflow natively
Yiannis
YiannisOP2y ago
Ah fair enough. Was just a it scared how passport would integrate with next but if that’s the only way then I should dive into it! Thanks again!
Want results from more Discord servers?
Add your server