Url configuration redirect url wilcard not saved properly #16947
Replies: 4 comments
-
|
@kangmingtay @J0 Not sure we can safely separate the string on client, or if even the gotrue middleware can? |
Beta Was this translation helpful? Give feedback.
-
|
Oh the URI_ALLOW_LIST environment variable which maps to the list of valid redirect urls lives on the server and we perform checks there. By
Were y'all hoping to pass the uri list to the server on a parameter in the supabase-js client library method which can then be split by either the middleware on GoTrue or the Supabase-js lib? Taking a guess here, because I'm not fully certain. Do y'all mind also sharing a high level overview of the issue with storing comma separated string? Would be helpful for us as we explore alternatives |
Beta Was this translation helpful? Give feedback.
-
|
@J0 they are using the redirect I assume on server you are just doing something like redirects.split(',') ? Would it not make more sense these are stored in an array anyway? |
Beta Was this translation helpful? Give feedback.
-
|
@MildTomato yeah you're right, it's one of the disadvantages of the library we're currently using to read the environment file for gotrue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
i'm trying to add a wildcard for redirectUrI in supabase auth dashboard,
http://localhost:3000{**,/**}:Example with the tool mentioned in subabase doc
when i add it to the dashboard it is getting saved as two url.

To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
http://localhost:3000{**,/**}Expected behavior
it should be added as one url
Beta Was this translation helpful? Give feedback.
All reactions