Extend last.fm token diagnostics for maintenance page

This commit is contained in:
Claudio Ortolina
2026-03-30 10:55:20 +01:00
parent 5a71a78392
commit 19b7091358
6 changed files with 133 additions and 27 deletions
+6
View File
@@ -83,6 +83,12 @@ defmodule LastFm do
|> API.scrobble(session_key, last_fm_config)
end
@spec get_profile(String.t()) :: {:ok, String.t()} | {:error, term()}
def get_profile(session_key) do
last_fm_config = last_fm_config()
API.get_user_info(session_key, last_fm_config)
end
@spec auth_url() :: String.t()
def auth_url do
last_fm_config = last_fm_config()