Skip to content
Advertisement

Getting OAuthCallbackError with nextjs Auth

I am trying to make a spotify analysis app that would analyse your Spotify data. But I am getting this error on authorization.

Here is my auth file.

JavaScript

this is my middleware

JavaScript

this is my login.js

JavaScript
JavaScript

It would be really great if someone could help me out here. Everytime I am trying to login,it’s throwing me this error.(http://localhost:3000/login?callbackUrl=http://localhost:3000/&error=OAuthCallback)

Advertisement

Answer

I think in your Spotify Developer there will be an option(users and access) there you need to give access to your account by just giving your email account I’d and their original Spotify name that’s it ……

We cannot give access to all users in our Spotify App due to limitations in Spotify developers tab so try to request for quota extension in the developers dashboard…. Which will ask about your app…. If you granted with an extension quota you can use any accounts to login and use your Spotify app…. Hope it will be useful to you..😊

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement