larkinds / Spotify.MLH

3 stars 1 forks source link

Spotify Authorization seems to not work #43

Closed wilkesalex closed 3 years ago

wilkesalex commented 3 years ago

Hi guys

I'm from Pod 2.1.1 and I was checking out other explorer projects in retro week.

You project sounds really cool, I tried to give it a go! I found the following issues which led to the app not being authorized by spotify:

It's just my notes and I'm going through the retro week tasks, so no worries really, I think it's a nice project and you should submit it to the VS Code Extensions, once newbs like me can get it working easy!

jkmartindale commented 3 years ago

Ah, found the issue. Your template file doesn't export its variables, so if you open extension.ts you'll probably see something like this:
image

This import issue leads to client_id becoming undefined, which is why it's not sent in the web requests. Using the proper template should resolve the error.

Thanks for filing this issue, I added the proper secrets template to the repository.

wilkesalex commented 3 years ago

Hey @jkmartindale thanks for checking it out! I see , I learnt something with the "exports" thing then :) Thanks a lot!