Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ But here they are again:
1. Click `Create an app`
- You now can see your `Client ID` and `Client Secret`
1. Now click `Edit Settings`
1. Add `http://localhost:8888/callback` to the Redirect URIs
1. Add `http://127.0.0.1:8888/callback` to the Redirect URIs
1. Scroll down and click `Save`
1. You are now ready to authenticate with Spotify!
1. Go back to the terminal
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl ClientConfig {
}

pub fn get_redirect_uri(&self) -> String {
format!("http://localhost:{}/callback", self.get_port())
format!("http://127.0.0.1:{}/callback", self.get_port())
}

pub fn get_port(&self) -> u16 {
Expand Down Expand Up @@ -115,7 +115,7 @@ impl ClientConfig {
"Click `Create a Client ID` and create an app",
"Now click `Edit Settings`",
&format!(
"Add `http://localhost:{}/callback` to the Redirect URIs",
"Add `http://127.0.0.1:{}/callback` to the Redirect URIs",
DEFAULT_PORT
),
"You are now ready to authenticate with Spotify!",
Expand Down