diff --git a/packages/supabase/src/auth-callback.service.ts b/packages/supabase/src/auth-callback.service.ts index 92b13cd0c..2bf125d86 100644 --- a/packages/supabase/src/auth-callback.service.ts +++ b/packages/supabase/src/auth-callback.service.ts @@ -45,6 +45,12 @@ class AuthCallbackService { const errorPath = params.errorPath ?? '/auth/callback/error'; + // remove the query params from the url + searchParams.delete('token_hash'); + searchParams.delete('type'); + searchParams.delete('next'); + searchParams.delete('callback'); + url.pathname = next; // if we have an invite token, we append it to the redirect url