Support query parameters on Redirect /callback URIs #21110
Replies: 8 comments 12 replies
|
Are you looking for this: |
|
@Slyracoon23 can you clarify why you're trying to do this? Maybe I'm misunderstanding, but this has always worked for me. It's for my app to consume though, not the OAuth provider. redirectTo: `${url.origin}/auth/callback?next=/app`Then in the callback route(SvelteKit): const next = url.searchParams.get('next') ?? '/' |
|
Is there any solution about it ? |
|
I have the same problem. I can see the params being sent to supabase servers: I'm sending the So, basically the invitation_code is lost when supabase server returns. |
|
Hitting this problem myself now. I'd love to be able to pass arbitrary query params to the redirect so that I can handle them in my app on successful authentication as needed. |
|
I also had this problem. Specifically I wanted to redirect to this URL after google sign in: But it kept bringing me to my default site URL (makeasite.io in my case). It turns out, what I needed to do was change the redirect URL from: to: The wildcard ended up allowing the query params to go through! Here's a screenshot for reference: |
|
that discussion could be an option : https://github.com/orgs/supabase/discussions/20439 |
|
You simply can't have dynamic urls for the callback url, even google forbids configuring that. If you want to have some additional data when logging a user in, you can save it in local storage and load it back in the callback route. |



Uh oh!
There was an error while loading. Please reload this page.
Exactly this, but for supabase-js: supabase/auth#1150
Right now,
/callback(or other redirect URIs) are appended with?code=xxx, how do I add my own custom parameters there?All reactions