Recommended Free Tools
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
Expo + Supabase OAuth deep links usually fail because one callback URL is being treated as several different values. The operating system, Expo, Supabase Auth, and the browser session must agree on the same scheme, host, path, and slash format. Generate the URI with makeRedirectUri(), register its scheme in the Expo app, allow the exact value in Supabase Auth, request OAuth with skipBrowserRedirect: true, and pass that same value to WebBrowser.openAuthSessionAsync(). Then parse the returned URL and finish the Supabase session exchange. A provider login page by itself does not prove that the app was reopened or that a session exists.
What has to happen for an Expo OAuth deep link to return?
An OAuth login is a chain of handoffs, not a single redirect. Your app starts the authorization request, the identity provider authenticates the user, the browser navigates to a callback URL, the operating system decides which application owns that URL, Expo’s browser session reports the result, and Supabase Auth still needs the returned code or tokens processed. A break at any handoff can look like “OAuth succeeded, but the app never came back.”
As an Amazon Associate I earn from qualifying purchases.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →The callback must match in four places:
- Expo app configuration: a custom URL scheme (or a universal-link association) must be present in the installed build.
- Redirect construction: the URI produced for the current platform and build must be the one used by the request.
- Supabase Auth allowlist: the exact callback pattern must appear in Additional Redirect URLs.
- Runtime handling: the browser result must be inspected, its URL parsed, and the appropriate Supabase session step completed.
Supabase describes this native flow in its Native Mobile Deep Linking guide. Expo’s OAuth authentication guide explains why redirect construction is environment-specific, while the WebBrowser API documentation covers the browser-session callback. The native-app OAuth model is also standardized in RFC 8252.
How do I identify the exact URI that is failing?
Start with the value generated by the application that actually fails. Do not copy a URI from memory, a web dashboard, or a different build type. Expo can produce different redirect values for a development client, a standalone binary, Android, iOS, and web.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
- Import
makeRedirectUrifrom Expo’s authentication-session package. - Log the result immediately before calling Supabase.
- Reproduce the failure on the affected platform and build.
- Record every character: scheme, host, path, capitalization, query portion, and trailing slash.
For example:
const redirectTo = makeRedirectUri();
console.log('OAuth redirect:', redirectTo);
Compare that printed value with the scheme in your Expo configuration, the URL in Supabase Auth’s allowlist, the redirectTo option supplied to Supabase, and the second argument passed to openAuthSessionAsync. A mismatch as small as myapp://callback versus myapp:///callback can prevent the operating system from resolving the link.
If a development build needs a native URI that Expo cannot infer, provide the appropriate value explicitly using the options documented by Expo. The important rule is consistency: an explicitly supplied URI must be the same URI registered and allowlisted for that build.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →How do I register a scheme in Expo?
A custom scheme gives the operating system a way to associate a URL such as myapp://oauth/callback with your installed application. Add the scheme to the Expo configuration used to create the binary, then rebuild and reinstall the app. Changing JavaScript alone does not change native URL-registration metadata already embedded in an installed binary.
A minimal configuration looks like this:
{
"expo": {
"scheme": "myapp"
}
}
Use the scheme that belongs to the build under test, and keep its spelling stable. If you alter the scheme, path conventions, or platform-specific native settings, create a new development or standalone build and install it; otherwise the old binary may continue claiming the previous URL.
On iOS and Android, verify the installed application is the one receiving the scheme. Multiple apps or stale builds can make a correct callback appear broken because another installation claims the URL, or because no installed binary contains the new registration.
How do I allow the callback in Supabase Auth?
Open the Supabase project authentication URL settings and add the exact callback URI generated by the affected app. Include the scheme and path, and preserve the slash form. Supabase compares redirect destinations against its configured allowlist; a near match is not a match.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Keep separate entries when development and standalone builds generate different URIs. For example, a development client may use a development-specific host or path while a release binary uses your custom scheme. Do not replace a known working entry with a guessed production value until the runtime URI has been logged.
The identity provider’s successful login page is only one stage. Supabase must accept the post-login destination, and the mobile app must own that destination. If Supabase rejects the redirect, the browser may remain on an error page even though authentication at the provider completed.
What is the correct Expo and Supabase OAuth call?
For a native browser flow, ask Supabase for the provider URL without letting Supabase perform a web-style automatic redirect. Then hand that URL to Expo’s browser session and use the same redirect value as the callback argument.
import * as WebBrowser from 'expo-web-browser';
import { makeRedirectUri } from 'expo-auth-session';
const redirectTo = makeRedirectUri();
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'github',
options: {
redirectTo,
skipBrowserRedirect: true
}
});
if (error) throw error;
if (!data?.url) throw new Error('Supabase did not return an OAuth URL');
const result = await WebBrowser.openAuthSessionAsync(data.url, redirectTo);
if (result.type === 'success') {
// Parse result.url and complete the Supabase session flow.
}
The provider name in the example is illustrative; use the provider enabled in your project. The two critical details are skipBrowserRedirect: true and passing the identical redirectTo to openAuthSessionAsync. If those values differ, Expo may wait for a callback that never arrives while the browser goes somewhere else.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchCheck for a Supabase error before opening the browser. Also handle a missing data.url; attempting to open an undefined URL obscures the real configuration problem.
How do I finish authentication after the app opens?
Reopening the app is not the same as creating a Supabase session. When openAuthSessionAsync reports success, inspect result.url. Depending on the flow and configuration, it can contain an authorization code, access and refresh tokens in the URL fragment, or an error returned by the authorization server.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Follow the current Supabase native example for the callback format your project uses. The handler should:
- Parse the URL with the platform’s URL utilities.
- Check for an
error,error_description, or equivalent parameter and show a useful message. - Read the authorization code or token values expected by the selected Supabase flow.
- Exchange a code or set a session using the corresponding Supabase Auth API.
- Clear sensitive values from logs and application state after processing.
Do not mark the user as signed in merely because result.type is 'success'. A success result means the browser session returned a URL; the URL may still describe a denied consent request or another OAuth error.
Free tools Windows power users keep installed
One-click scans. No signup required.
Also handle the case where the operating system opens the app outside the active browser-session callback. Register an inbound-link listener with Expo’s linking facilities, process the initial URL on cold start, and route those URLs through the same parsing and session-completion code. This covers a user tapping a callback after the browser session has already closed or the app being resumed from a terminated state.
Why does the callback work in development but fail in a standalone build?
Development and standalone builds are different redirect environments. Expo’s documentation explicitly shows environment-dependent URI construction, so a URI observed in one mode cannot be assumed to apply to another. A development client may include a development host or special path; a standalone binary normally relies on the custom scheme compiled into that binary.
Use this comparison procedure:
- Print
makeRedirectUri()in the development build. - Print it again in the standalone build on the same platform.
- Compare the two values character by character.
- Add each legitimate value to Supabase’s Additional Redirect URLs.
- Confirm the installed standalone binary was rebuilt after any scheme change.
If the standalone value is correct but the browser returns to a web page, inspect the operating-system registration in the binary rather than changing JavaScript code. If the development value unexpectedly contains “localhost,” confirm that the code is not forcing a web-oriented redirect or using a stale configuration intended for a browser-only flow.
Should I use a custom scheme or universal links?
A custom scheme is usually the quickest native setup: register a scheme, allow the resulting URI, and use it consistently. Universal links (iOS) and app links (Android) use verified HTTPS domains and provide a more web-compatible handoff, but they require domain association files, signing configuration, and additional deployment work.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
| Choice | Strengths | Costs and failure points |
|---|---|---|
| Custom scheme | Small configuration surface; works without owning an HTTPS domain; straightforward for development and internal builds. | Another app can potentially claim the same scheme; URI differences between builds must be managed carefully. |
| Universal/app links | Verified domain ownership and a smoother link experience when users already interact with HTTPS URLs. | More setup, platform association files, signing requirements, and domain configuration to verify. |
Supabase recommends universal links for the best link experience when you can support the additional setup. Whichever method you select, the callback generated at runtime remains the source of truth for the OAuth request and browser session.
What do common symptoms mean?
| Symptom | Likely handoff to inspect | Action |
|---|---|---|
| Provider login succeeds, but the browser stays open | Supabase allowlist or callback mismatch | Compare the logged URI with Additional Redirect URLs and the provider request. |
| The app opens, but the user is still signed out | Callback parsing or session exchange | Inspect result.url, surface OAuth errors, and complete the code exchange or session-setting step. |
| Nothing opens after authentication | Native scheme registration | Verify the scheme is in the installed binary and rebuild after changing app configuration. |
| It works in a development client only | Environment-specific redirect | Log the standalone URI separately and allowlist that exact value. |
| The app opens when tapped manually but not from the browser session | Different callback arguments | Pass the same redirectTo to both Supabase and openAuthSessionAsync. |
result.type is 'cancel' or 'dismiss' |
Browser session ended without a callback | Keep the user signed out, provide a retry action, and log the session outcome without exposing tokens. |
These symptoms are clues, not universal diagnoses. The exact cause depends on the runtime URI, platform, build type, app configuration, and Supabase settings.
How can I debug the callback without guessing?
Use one trace identifier and collect the values at each stage while reproducing the issue on a non-production account:
- Record the platform and build type.
- Log the output of
makeRedirectUri(). - Log whether Supabase returned an error and whether
data.urlexists. Never log the full authorization URL if it contains sensitive values. - Log the browser result type.
- If the result is successful, log only the callback’s parameter names, not access or refresh token values.
- Record whether the session exchange returned an error.
Then check the chain in order: scheme registration, runtime URI, Supabase allowlist, identical request and browser arguments, callback parsing, and session establishment. This order prevents spending time on token handling when the operating system never received a routeable URL.
What should a production-ready implementation include?
A robust implementation treats OAuth as an asynchronous state machine. Disable duplicate login taps while a browser session is active, provide a cancellation path, and show a retry message that distinguishes a user cancellation from a configuration error. Keep token values out of analytics and ordinary logs.
Centralize callback parsing so a URL received from openAuthSessionAsync, an initial cold-start link, or a later inbound-link event follows the same validation and Supabase session code. Make the parser reject unexpected schemes and hosts rather than processing arbitrary links. After a successful exchange, refresh the UI from Supabase’s authenticated session state instead of assuming that navigation alone proves login.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
Finally, test every supported combination that has a different redirect: iOS and Android, development and standalone builds, fresh install and resumed app, successful consent and denied consent, and a user who cancels the browser. Expo’s redirect guidance and Supabase’s native example should be checked against the versions currently installed in the project because API details can evolve.
What is the shortest reliable fix?
Print the actual makeRedirectUri() value in the failing build, register its scheme in Expo and rebuild, add the exact URI to Supabase Auth, pass it as both redirectTo and the openAuthSessionAsync callback, and parse the returned URL to complete the Supabase session. If the app still does not authenticate, inspect the result for an OAuth error and add inbound-link handling for callbacks that arrive outside the active browser session. This sequence addresses the complete handoff instead of treating the provider’s login page as the end of the flow.
Frequently Asked Questions
Why does Expo OAuth redirect to localhost?
A localhost value usually indicates that the code is constructing a web-oriented redirect or running in an environment whose generated URI includes a development host. Log the URI at runtime, avoid hard-coding a browser callback for native builds, and allowlist the native value separately in Supabase.
Can I change the Expo scheme without rebuilding the app?
No. The scheme is native metadata embedded in the installed binary. After changing it, create and install a new development or standalone build before expecting the operating system to route callbacks to the app.
What does an OAuth callback error mean when the app opens correctly?
It means deep linking succeeded but authorization or session completion did not. Read the callback’s error parameters, distinguish a user denial from a server or configuration error, and do not create an authenticated UI state until Supabase confirms the session.
Do I need an inbound-link listener if openAuthSessionAsync returns success?
It is still advisable because a callback can arrive after the browser session closes, when the app is resumed, or while the app is cold-starting. Route initial and later links through the same parser used for the browser-session result.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problems

