summaryrefslogtreecommitdiffstats
path: root/crates/auth/src/cnfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/auth/src/cnfg.rs')
-rw-r--r--crates/auth/src/cnfg.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/crates/auth/src/cnfg.rs b/crates/auth/src/cnfg.rs
deleted file mode 100644
index 9b765a5..0000000
--- a/crates/auth/src/cnfg.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-use serde::Deserialize;
-
-#[derive(Deserialize, Clone)]
-#[serde(rename_all = "kebab-case")]
-pub struct LocalConfig {
- pub oauth: OauthConfig,
- pub profile_endpoint: String,
-}
-
-#[derive(Deserialize, Clone)]
-#[serde(rename_all = "kebab-case")]
-pub struct OauthConfig {
- pub discord: OauthCredentials,
- pub session_lifespan: u64,
- pub jwt_encoding_key: String,
-}
-
-#[derive(Deserialize, Clone)]
-#[serde(rename_all = "kebab-case")]
-pub struct OauthCredentials {
- pub client_id: String,
- pub client_secret: String,
- pub redirect_url: String,
- pub auth_url: Option<String>,
- pub token_url: Option<String>,
-}