Closed coredev-uk closed 2 years ago
I got the lastfm side. Thinking just a basic URI
if (String(param).includes('auth')) {
// [URI]://auth/?token=[32 Char token]
app.preferences.value('general.lastfmAuthKey') = String(param).split('token=')[1]
}
https://www.last.fm/api/auth?api_key=[apiKey]&cb=ame://auth(no need for url encoding) ->
Allow Access->
ame://auth/?token=[32 Char token]->
app.preferences.value('general.lastfmAuthKey', String(param).split('token=')[1])`
ab1d60a -Store.set('lastfm.token') = String(param).split('token=')[1])
Done.
I got the lastfm side.
Thinking just a basic URI
if (String(param).includes('auth')) { // [URI]://auth/?token=[32 Char token] app.preferences.value('general.lastfmAuthKey') = String(param).split('token=')[1] }
will do today
The easiest way to do this would probably be directing users to account settings and set the inner HTML of the box div.