-
Hi Fernando! great work unifying navigation between both platforms. felicitation!! Using navigation separately leads me to wonder how you would handle Authentication in general on the client-side with protected routes? then maybe what server solutions do you think fits? ex: Auth0, NextAuth.js, etc? I'd truly appreciate your feedback. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
so far I’ve been using Firebase Auth and it’s worked great. I haven’t done any server side auth with it yet (only on the client so far), but I imagine it would be easy to add. On iOS/Android I’m using react-native-firebase. UpdateSee the docs for auth here: #39 (comment) |
Beta Was this translation helpful? Give feedback.
-
@nandorojo Supabase has an example using email/password but using OAuth not sure if it's that simple (I've played a bit with it doesn't seem trivial dealing with the Google login screen ...) I've also found this other library ... What's your opinion? And mostly, what's your opinion about Expo Auth API? |
Beta Was this translation helpful? Give feedback.
-
@Rychillie it would be nice to have example templates, something as Supabase is more of an "all-in-one backend" and it's probably great for creating a quick MVP. While I think it's better to use different services/options for various backend and middleware tasks, this way you let each service does what it does best. My projects run on top of something similar to Solito starter, named Unirepo (private for now, maybe turning it public one day) where I have an Authentication has to do with navigation, state management, database, and server, so having also an example may be called |
Beta Was this translation helpful? Give feedback.
-
How would I use firebase-emulator in the monorepo? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, I finally got around to this. Here is a guide for using cross-platform authentication with Solito: https://solito.dev/guides/auth I recommend watching the video and referencing the source code there. |
Beta Was this translation helpful? Give feedback.
-
Below is a sample pattern to integrate Auth0
Install Deps:
Auth Provider:
./app/proovider/auth/index.tsx
./app/proovider/auth/index.web.tsx
Add Provider ./packages/app/provider/index.tsx
Auth Hook:
./app/hook/auth/index.tsx
./app/hook/auth/index.web.tsx
Sample Login Button
|
Beta Was this translation helpful? Give feedback.
Hey everyone, I finally got around to this. Here is a guide for using cross-platform authentication with Solito: https://solito.dev/guides/auth
I recommend watching the video and referencing the source code there.