client-api: Add GrantType::DeviceCode

It is necessary for MSC4108.
This commit is contained in:
Kévin Commaille 2025-02-18 17:09:02 +01:00 committed by June Clementine Strawberry
parent 5dc3e0f81d
commit 8065ef2a10

View file

@ -287,6 +287,13 @@ pub mod msc2965 {
/// [RFC6749]: https://datatracker.ietf.org/doc/html/rfc6749
RefreshToken,
/// The device code grant type ([RFC8628]).
///
/// [RFC8628]: https://datatracker.ietf.org/doc/html/rfc8628
#[cfg(feature = "unstable-msc4108")]
#[ruma_enum(rename = "urn:ietf:params:oauth:grant-type:device_code")]
DeviceCode,
#[doc(hidden)]
_Custom(PrivOwnedStr),
}