Convex Auth - Capacitor Based web and mobile app
Can you prepare a document or example on how to log in on mobile for applications that use the Capacitor infrastructure?
It works fine on the web side, but I couldn't run it on the mobile side.
I think an intermediate layer is needed for Expo, such as the openAuthSessionAsync and makeRedirectUri functions used in the document.
5 Replies
Hey! I assume you mean OAuth didn't work. How does it fail?
It might be a while before we get to optimizing the library for Capacitor, but contributions are welcome!
I'm sorry for returning late.
Streaming for web works fine as in video.
The same flow exits the application on the capacitor and opens the browser. I couldn't show it in the video, but the user is asking again and cannot redirect.
It seems like we need to open the browser within the application, not externally.
I think we need to use a library like @capacitor/browser (like expo-auth-session used for React native)
I could not find how to solve the flow in the code sample in a capacitor application.
This might be more of a capacitor than Convex question.