Context
Performing a logout operation in a custom auth pipeline rule including a redirect URL. Involved code:
const redirectUrl = 'http://localhost:8000/login?a=1&b=2';
return callback(null, user, {...context, redirect: {url:
`https://flinkit-dev.eu.auth0.com/v2/logout?returnTo=${encodeURI(redirectUrl)}&client_id=${context.clientID}`
}});
Expected behavior
When specifying multiple URL query parameters for the v2/logout endpoint they will all be respected when auth0 performs the redirect. Using the example code in the auth pipeline rule, auth0 redirects to http://localhost:8000/login?a=1
Actual behavior
Only the first URL query parameter is respected, all other get cut off. Given the example code above auth0 actually redirects to http://localhost:8000/login?a=1&b=2.