We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7482c30 commit 333fbefCopy full SHA for 333fbef
2 files changed
src/config.rs
@@ -31,8 +31,7 @@ pub struct Config {
31
32
#[envconfig(
33
from = "SPOTIFY_REDIRECT_URI",
34
- default = "https://127.0.0.1:8080/v1/spotify/callback"
+ default = "http://127.0.0.1:8080/v1/spotify/callback"
35
)]
36
-
37
pub spotify_redirect_uri: String,
38
}
src/modules/spotify/handler.rs
@@ -62,7 +62,7 @@ async fn callback(
62
let config = Config::init_from_env().unwrap();
63
64
let code = &info.code;
65
- let redirect_uri = "http://127.0.0.1:8080/v1/spotify/callback";
+ let redirect_uri = config.spotify_redirect_uri;
66
let data = AuthData {
67
code: code.into(),
68
grant_type: "authorization_code".into(),
0 commit comments