api_url Override Not Reflected in Magic Link for Android Emulator #33880
Unanswered
tulipekoni
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running Supabase locally on an Android emulator, which requires using
10.0.2.2
instead of127.0.0.1
. I have updated theconfig.toml
file accordingly:However, after running
supabase start
, the logs still show:Even though API requests from the Android emulator correctly resolve to
http://10.0.2.2:54321
, I face an issue with the magic link authentication:http://127.0.0.1:54321/auth/v1/verify?token={xxx}=magiclink&redirect_to=schema://
instead of usinghttp://10.0.2.2:54321
.127.0.0.1
does not work inside the emulator, the verification request fails, causing the login process to break.Expected Behavior
The magic link should use
http://10.0.2.2:54321
as defined inconfig.toml
instead ofhttp://127.0.0.1:54321
.Steps to Reproduce
api_url = "http://10.0.2.2"
.supabase start
.127.0.0.1
instead of10.0.2.2
.Possible Causes
Could it be that
api_url
inconfig.toml
is not applied to the magic link generation? Is there another setting that controls this URL?Any insights on how to properly override this would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions