Skip to content
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

feat(spotify-play): Add functionality to play songs on spotify #22

Merged
merged 11 commits into from
Oct 25, 2023
114 changes: 92 additions & 22 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const scope = `
user-read-email
streaming
user-read-playback-state
user-modify-playback-state`;
user-modify-playback-state
app-remote-control`;

const router = express.Router();

Expand Down Expand Up @@ -260,7 +261,6 @@ router.get('/token', (req, res) => {
* refresh_token: "this_is_a_random_refresh_token_here"
* }
*/
router.options('/refresh_token', cors()); // Need this for cors
router.post('/refresh_token', async (req, res) => {
// requesting access token from refresh token

Expand Down
Loading