-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"access_denied" when Account Link Extension is enabled #1384
Comments
Hi @zeelmodi-simform - thanks for raising this The error you've shared says the following:
This means that your Account Link Extension is failing with This is not an SDK issue, but you could try changing the Rule's Node runtime to Node 16 which should resolve the issue. The issue has also been raised here https://community.auth0.com/t/auth0-account-link-error-with-importing-modules/114153 - which is the best place to follow for any progress. |
@adamjmcgrath - thank you for your response. I checked the community post but no one has responded and as you suggested changing rule's node runtime, the option is not provided over dashboard I tried adding this extension by following this doc: |
Hi @zeelmodi-simform - I've created an issue here auth0-extensions/auth0-account-link-extension#163 There's nothing this SDK can do to fix that rule unfortunately |
@adamjmcgrath Thanks for your attention to this issue. I appreciate your effort! |
@adamjmcgrath I'm facing a weird issue related to Auth0 Initially when I start the app I'm being redirected to 404 page. But when I save any of the files, I am able to see my home page! Now another issue is I've deployed it to vercel and on initial load it is working absolutely fine but when I try to navigate to /profile it is not redirecting me to auth0 login but in my local it is working as expected. You can refer my repository: https://github.com/zeelmodi-simform/nextjs-sso-implementation-poc Also found issue on community: |
@adamjmcgrath I found the reason why I'm being redirected to 404 page, because request to /api/auth/me are failing |
Checklist
Description
When I try to login using auth0 into my app I'm getting
access_denied
error and unable to move forward in the application.If I disable Account Link Extension from Rules login is working perfectly fine. Please refer to the following image:
Here I'm trying to login with my github account and I'm being redirected to following URL:
http://localhost:3000/api/auth/callback?error=access_denied&error_description=Cannot%20find%20module%20%27request%402.56.0%27%0ARequire%20stack%3A%0A-%20%2Fdata%2Fio%2Fnode18%2Fd59cd921-d636-41df-98a6-ca328ec947a0%2Fwebtask.js&state=eyJyZXR1cm5UbyI6Ii9wcm9maWxlIn0
Error I'm getting in console:
This is how it looks like in Auth0 Real-time Webtask Logs
Reproduction
Steps are as mentioned above
Additional context
No response
nextjs-auth0 version
^3.0.1
Next.js version
^13.4.18
Node.js version
v16.15.1
The text was updated successfully, but these errors were encountered: