Description
Checklist
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
This is particularly for NextJS SDK. Other SDK may also have this but cannot confirm.
It’s frustrating when we need to add exact pathname and query params when logging out of any application specially web application. We have a booking commerce website where the user can login after they do search. On searching, query params like start_date, end_date is added to the query params as we are maintaining the states in the URL itself. But Auth0 doesn’t allow dynamic pathname, nor dynamic params.
We also have more than 500 product page considering the locales as well and putting every url to the allowed logout urls is a mess. Also it’s a mess when we consider that we cannot pre determine the query params the users can have.
Describe the ideal solution
It would be really good if we don’t have any restriction on the redirect url after logging out so that the sdk will redirect from the page the user applied logout from.
Even if that’s not possible, atleast not restrict them on query params because it’s quite tedious and makes no sense validating the state params to auth0
Alternatives and current workarounds
As of now the current alternative is to create a page which return null but redirect the users based on the url stored in local storage which imo is a flaw in the UX and flow.
Additional context
No response