jsaelhof / movie-picker

Next.js test app. Keeps a list of movies to watch across various streaming services and randomly picks one.
https://moviedecider4000.vercel.app
2 stars 0 forks source link

Create a page at "/api/auth/callback" #2

Open jsaelhof opened 3 years ago

jsaelhof commented 3 years ago

http://localhost:4000/api/auth/callback just displays an error if the user declines the access to the profile on sign up. Have a look at what all the callback url is used for and implement a page here.

UI view: image

jsaelhof commented 3 years ago

Server sends back a 400

Error [BadRequestError]: access_denied (User did not authorize the request) at new HandlerError (/Users/jason/GitHub/personal/movie-picker/node_modules/@auth0/nextjs-auth0/dist/utils/errors.js:49:28) at Object. (/Users/jason/GitHub/personal/movie-picker/node_modules/@auth0/nextjs-auth0/dist/handlers/callback.js:39:31) at step (/Users/jason/GitHub/personal/movie-picker/node_modules/@auth0/nextjs-auth0/node_modules/tslib/tslib.js:143:27) at Object.throw (/Users/jason/GitHub/personal/movie-picker/node_modules/@auth0/nextjs-auth0/node_modules/tslib/tslib.js:124:57) at rejected (/Users/jason/GitHub/personal/movie-picker/node_modules/@auth0/nextjs-auth0/node_modules/tslib/tslib.js:115:69) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) { name: 'BadRequestError', status: 400 }