fix(oauth2): fix spec discrepancies

This commit is contained in:
Zomatree
2025-08-18 01:58:14 +01:00
parent 9e05e5be7e
commit 3ae25fbcfe
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ auto_derived!(
#[derive(Copy)]
#[cfg_attr(feature = "rocket", derive(rocket::FromFormField))]
pub enum OAuth2GrantType {
#[cfg_attr(feature = "rocket", field(value = "code"))]
#[cfg_attr(feature = "serde", serde(rename = "code"))]
#[cfg_attr(feature = "rocket", field(value = "authorization_code"))]
#[cfg_attr(feature = "serde", serde(rename = "authorization_code"))]
AuthorizationCode,
#[cfg_attr(feature = "rocket", field(value = "implicit"))]
#[cfg_attr(feature = "serde", serde(rename = "implicit"))]