evancohen / smart-mirror

The fairest of them all. A DIY voice controlled smart mirror with IoT integration.
http://smart-mirror.io
2.79k stars 694 forks source link

spotify authorization doesn't work if config page on different machine #862

Closed sdetweil closed 3 years ago

sdetweil commented 4 years ago

fails to connect to THIS machines locahost:4000

sdetweil commented 4 years ago

rework to launch auth ON the pi when clicked (link in config needs to account for pi ip address not hard code 'localhost')

if requestor is not localhost, open a browser to the redirect uri (now browser on pi)

else send redirect to redirect_uri( on browser on pi)

then in both cases, the completion uri comes back to handler on pi..as expected.