Authorization and password reset using the @auth0/nextjs-auth0 SDK with custom pages

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:

  1. The SDK does not read the session after authorization.
  2. 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! :blush:

Hi @d.machulianskyi,

Welcome to the Auth0 Community!

Can you kindly provide more information about your two main issues? What do you mean the SDK does not read the session after authorization? Regarding the password reset, can you elaborate? You mention custom pages and no redirects - can you also explain these?

As much information/screenshots/etc. you could provide would be helpful!

I look forward to your reply!

Best,

Mary Beth

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.