I have a NextJS app (shoes store) with many pages and my problem with redirect after login.
User can click login button at any page (home, some category, product etc., more then 100 pages) and I can’t add all of those pages to the allowed callback URI’s.
How I can implement loginWithRedirect function to redirect user back to any page after login with auth0 without adding all pages to the allowed callback URIs?
Thanks @stephanie.chamblee!
But looks like my onRedirectCallback method doesn’t invoke after login at all.
Should I add it to the allowedCallback URIs or do something else ?
I wrapped my _app.js file with Auth0Provider, it works fine for login from home page without onRedirectCallback func, but probably for NextJs I should wrapped _document.js file to invoke onRedirectCalback func successfuly ?