Redirect to Last.fm and receive a token (unused)

This commit is contained in:
Claudio Ortolina
2025-05-05 19:19:12 +01:00
parent 9e458b07df
commit 7c547f2d80
6 changed files with 27 additions and 0 deletions
+5
View File
@@ -41,5 +41,10 @@ defmodule LastFm do
end
end
def auth_url do
last_fm_config = last_fm_config()
"https://www.last.fm/api/auth/?api_key=" <> last_fm_config.api_key
end
defp last_fm_config, do: LastFm.Config.resolve(:music_library)
end