Welcome back to the Auth0 Community!
Thank you for posting your question, we have a dedicated doc page about your problem with dynamic parameters which you can find here → Log Users Out of Auth0 with OIDC Endpoint
The OIDC Logout endpoint parses query string parameters in the URL provided to the
post_logout_redirect_uri
parameter.You must include these query string parameters in your Allowed Logout URLs, or the logout request may be denied.
For example, if you pass
https://example.com/logout?myParam=1234
to thepost_logout_redirect_uri
parameter (encoded ashttps%3A%2F%2Fexample.com%2Flogout%3FmyParam%3D1234
), you must includehttps://example.com/logout?myParam
in your Allowed Logout URLs.
Thanks
Dawid