We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Getting a oauth_parse_profile_error for the Spotify provider when the authenticating user has no profile images.
Steps to reproduce
Expected behavior The user is able to login successfully.
Screenshots or error logs [next-auth][error][oauth_parse_profile_error] [ TypeError: Cannot read property 'url' of undefined at Object.profile (C:\...\node_modules\next-auth\dist\providers\spotify.js:32:35) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:172:32 at Generator.next (<anonymous>) at asyncGeneratorStep (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:26:103) at _next (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:194) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:364 at new Promise (<anonymous>) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:97 at _getProfile2 (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:200:23) at _getProfile (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:150:23), { display_name: 'david', email: 'david@test.com', external_urls: { spotify: 'https://open.spotify.com/user/{id}' }, followers: { href: null, total: 0 }, href: 'https://api.spotify.com/v1/users/{id}', id: '{id}', images: [], type: 'user', uri: 'spotify:user:{id}' } ] https://next-auth.js.org/errors#oauth_parse_profile_error
[next-auth][error][oauth_parse_profile_error] [ TypeError: Cannot read property 'url' of undefined at Object.profile (C:\...\node_modules\next-auth\dist\providers\spotify.js:32:35) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:172:32 at Generator.next (<anonymous>) at asyncGeneratorStep (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:26:103) at _next (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:194) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:364 at new Promise (<anonymous>) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:97 at _getProfile2 (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:200:23) at _getProfile (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:150:23), { display_name: 'david', email: 'david@test.com', external_urls: { spotify: 'https://open.spotify.com/user/{id}' }, followers: { href: null, total: 0 }, href: 'https://api.spotify.com/v1/users/{id}', id: '{id}', images: [], type: 'user', uri: 'spotify:user:{id}' } ] https://next-auth.js.org/errors#oauth_parse_profile_error
Additional context I think this is a pretty simple fix in the providers/spotify.js file but let me know if you need any further information.
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry just found that this has been fixed already.
#612
I'll wait for the next release. Thanks.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Getting a oauth_parse_profile_error for the Spotify provider when the authenticating user has no profile images.
Steps to reproduce
Expected behavior
The user is able to login successfully.
Screenshots or error logs
[next-auth][error][oauth_parse_profile_error] [ TypeError: Cannot read property 'url' of undefined at Object.profile (C:\...\node_modules\next-auth\dist\providers\spotify.js:32:35) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:172:32 at Generator.next (<anonymous>) at asyncGeneratorStep (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:26:103) at _next (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:194) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:364 at new Promise (<anonymous>) at C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:28:97 at _getProfile2 (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:200:23) at _getProfile (C:\...\node_modules\next-auth\dist\server\lib\oauth\callback.js:150:23), { display_name: 'david', email: 'david@test.com', external_urls: { spotify: 'https://open.spotify.com/user/{id}' }, followers: { href: null, total: 0 }, href: 'https://api.spotify.com/v1/users/{id}', id: '{id}', images: [], type: 'user', uri: 'spotify:user:{id}' } ] https://next-auth.js.org/errors#oauth_parse_profile_error
Additional context
I think this is a pretty simple fix in the providers/spotify.js file but let me know if you need any further information.
Thanks!
The text was updated successfully, but these errors were encountered: