dropbox_sdk/generated/sync_routes/
openid.rs

1// DO NOT EDIT
2// This file was @generated by Stone
3
4#![allow(
5    clippy::too_many_arguments,
6    clippy::large_enum_variant,
7    clippy::result_large_err,
8    clippy::doc_markdown,
9)]
10
11#[allow(unused_imports)]
12pub use crate::generated::types::openid::*;
13
14/// This route is used for refreshing the info that is found in the id_token during the OIDC flow.
15/// This route doesn't require any arguments and will use the scopes approved for the given access
16/// token.
17///
18/// # Stability
19/// *PREVIEW*: This function may change or disappear without notice.
20#[cfg(feature = "unstable")]
21#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
22pub fn userinfo(
23    client: &impl crate::client_trait::UserAuthClient,
24    arg: &UserInfoArgs,
25) -> Result<UserInfoResult, crate::Error<UserInfoError>> {
26    crate::client_helpers::unwrap_async(
27        crate::client_helpers::request(
28            client,
29            crate::client_trait_common::Endpoint::Api,
30            crate::client_trait_common::Style::Rpc,
31            "openid/userinfo",
32            arg,
33            None)
34    )
35}
36