Skip to content

Commit 333fbef

Browse files
committed
Fixed merge issues?
1 parent 7482c30 commit 333fbef

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ pub struct Config {
3131

3232
#[envconfig(
3333
from = "SPOTIFY_REDIRECT_URI",
34-
default = "https://127.0.0.1:8080/v1/spotify/callback"
34+
default = "http://127.0.0.1:8080/v1/spotify/callback"
3535
)]
36-
3736
pub spotify_redirect_uri: String,
3837
}

src/modules/spotify/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async fn callback(
6262
let config = Config::init_from_env().unwrap();
6363

6464
let code = &info.code;
65-
let redirect_uri = "http://127.0.0.1:8080/v1/spotify/callback";
65+
let redirect_uri = config.spotify_redirect_uri;
6666
let data = AuthData {
6767
code: code.into(),
6868
grant_type: "authorization_code".into(),

0 commit comments

Comments
 (0)