com.capacitor-example.app
. You’ll need to set up deep links using HTTPS domains.
Here’s how to set up OAuth authentication in your Capacitor app!
https://localhost
(origin for Capacitor Android apps)capacitor://localhost
(origin for Capacitor iOS apps)https://your-ngrok-url.ngrok.io
(must match your redirect URL domain)https://your-ngrok-url.ngrok.io/redirect
https://localhost
for Android and capacitor://localhost
for iOS) remain the samecapacitor.config.ts
file to handle OAuth redirects:
https://abc123.ngrok.io
) as you’ll need it for the Privy configuration.
AppUrlListener
component to handle deep link redirects for OAuth flows. Add this component before your PrivyProvider
:
Info.plist
: