From 1f76530bc5001d9a9088f269db6c03cf287b67e6 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Mon, 2 Feb 2026 17:09:32 +0200 Subject: feat: create auth session --- src/config/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index aa6f770..0c53f08 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -74,7 +74,7 @@ pub struct DiscordOauth { #[cfg(feature = "oauth-discord")] fn discord_token_url() -> Url { - Url::parse("https://discord.com/api/oauth2/authorize?response_type=code").expect("valid url") + Url::parse("https://discord.com/api/oauth2/token").expect("valid url") } #[cfg(feature = "oauth-discord")] @@ -195,6 +195,7 @@ impl Config { if let Some(db_url) = &cli.db { dsn.url = db_url.clone(); } + } } -- cgit v1.2.3