dropbox_sdk/generated/async_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<'a>(
23    client: &'a impl crate::async_client_trait::UserAuthClient,
24    arg: &'a UserInfoArgs,
25) -> impl std::future::Future<Output=Result<UserInfoResult, crate::Error<UserInfoError>>> + Send + 'a {
26    crate::client_helpers::request(
27        client,
28        crate::client_trait_common::Endpoint::Api,
29        crate::client_trait_common::Style::Rpc,
30        "openid/userinfo",
31        arg,
32        None)
33}
34