Expo app : RedirectTo field with Supabase Auth always set to localhost

Published: (March 30, 2026 at 12:44 AM EDT)
1 min read
Source: Dev.to

Source: Dev.to

Issue

You are building an Expo mobile app with Supabase as a backend.
You have correctly set the redirect URL to exp://auth/callback in the URL configuration of Supabase Auth and want to test the flow on Expo Go.

If the reset‑password link sent by email always contains localhost as the redirectTo address, the authentication flow will not work correctly in Expo Go.

Fix

Run the Expo development server using the tunnel option so that Supabase receives a reachable URL instead of localhost:

npx expo start --tunnel

This forces Expo to generate a tunnel URL (e.g., https://xxxx.ngrok.io) that Supabase can use for redirects, eliminating the localhost problem.

Visual reference

Supabase Auth redirect issue

0 views
Back to Blog

Related posts

Read more »