fix: Allow scopes to be optional

This commit is contained in:
Ginger committed 2026-12-02 22:51:18 -05:00
1 parent 4c082e8000
commit f28e846c6e
1 file changed
+2 -1
+2 -1
View File
@@ -102,7 +102,7 @@ impl Display for RequestedScopes {
}
}
#[derive(Debug, Clone, Deserialize, Serialize)]
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
pub struct RawScopes(String);
impl RawScopes {
@@ -259,6 +259,7 @@ pub enum TokenRequestType {
},
ClientCredentials {
client_secret: String,
#[serde(default)]
scope: RawScopes,
},
}