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
+6
View File
@@ -1,6 +1,7 @@
defmodule LastFm.Config do
@type t :: %__MODULE__{
api_key: String.t(),
shared_secret: String.t(),
user: String.t(),
auto_refresh: boolean(),
refresh_interval: pos_integer(),
@@ -10,6 +11,7 @@ defmodule LastFm.Config do
@enforce_keys [:api_key, :user]
defstruct api_key: "",
shared_secret: "",
user: "",
auto_refresh: true,
refresh_interval: 60_000,
@@ -21,6 +23,10 @@ defmodule LastFm.Config do
type: :string,
required: true
],
shared_secret: [
type: :string,
required: true
],
user: [
type: :string,
required: true