I have a Regular web application using the @auth0/nextjs-auth0 SDK. I need to implement authorization and password reset flow on custom pages without redirects.
I tried implementing this using custom endpoints with AuthenticationClient, ManagementClient, or direct requests.
The app is built with Next.js v14 using the App Router. Connection ‘Username-Password-Authentication’.
Main issues:
- The SDK does not read the session after authorization.
- Password reset does not work, even though a successful response is returned.
Could you please advise on the correct implementation so token storage and refresh are handled properly using the SDK?
Thank you in advance for any insights!