I’m working on integrating Spotify authentication into my Meteor application using the xinranxiao:accounts-spotify package, but I keep running into redirect URL problems during the login process.
Here’s my basic template structure:
<head>
<title>MySpotifyApp</title>
</head>
<body>
{{> loginButtons}}
<h1>My Music App</h1>
{{> dashboard}}
</body>
<template name="dashboard">
<button>Start Playing</button>
<p>Songs played: {{songCount}} tracks.</p>
</template>
My package.json includes these dependencies:
meteor-base
mobile-experience
mongo
blaze-html-templates
session
jquery
tracker
standard-minifiers
es5-shim
ecmascript
autopublish
insecure
accounts-ui
xinranxiao:accounts-spotify
I already set up my app in Spotify’s developer console and configured the client ID and secret key through the accounts-spotify configuration interface. The setup process seemed straightforward, but when users try to authenticate, they get redirected to an error page instead of completing the login flow. Has anyone else experienced similar redirect URL issues with this package? What might be causing this authentication failure?