Skip to content

Commit

Permalink
email in discord oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
mbund committed Sep 12, 2024
1 parent a8c857d commit ea03220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/standalone/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
rhombus = { path = "../../rhombus", features = ["libsql"] }
tokio = { version = "1.37.0", features = ["full"] }
tokio = { version = "1.40.0", features = ["full"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion rhombus/src/internal/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub async fn route_signin_discord(state: State<RouterState>) -> impl IntoRespons
.unwrap();

let signin_url = format!(
"https://discord.com/api/oauth2/authorize?client_id={}&redirect_uri={}/signin/discord/callback&response_type=code&scope=identify{}&state={}",
"https://discord.com/api/oauth2/authorize?client_id={}&redirect_uri={}/signin/discord/callback&response_type=code&scope=identify+email{}&state={}",
client_id,
location_url,
if autojoin.unwrap_or(true) { "+guilds.join" } else { "" },
Expand Down

0 comments on commit ea03220

Please sign in to comment.