Sorry for pushing on this request I know its too early to follow up but I have my production release on coming Friday so it will be great if I get some response as soon as possible from you guys
As mentioned in this topic, unfortunately you cannot use a wildcard to match several callback URLs. Instead the suggested way to handle multiple routes is to use a single callback route (e.g. /callback) and redirect to the desired route from within your application:
Store the following in localStorage: randomStateValue : the URL pathname.
Pass randomStateValue as the state parameter in the authentication request.
Check the state value in the callback, and retrieve the value for randomStateValue from localStorage.
Perform the redirect from within your application.
I noticed this issue and realized that the Auth0 SPA SDK has its own way of storing state that can be retrieved from when you call handleRedirectCallback:
// set state when you request redirect
client.loginWithRedirect({
appState: { 'randomString': '/report_snapshot/200' }
});
// Retrieve the state
const { appState } = handleRedirectCallback();
const redirectPath = appState[redirectKey];