proxyOAuth2Authenticate method
Future<ProxyTOAuth2AuthenticateResponse>
proxyOAuth2Authenticate({
- required ProxyTOAuth2AuthenticateBody input,
Produce a SignedRequest from ProxyTGetAccountBody by using the client's stamp function.
See also: GetAccount.
Authenticate with an OAuth 2.0 provider and receive an OIDC token issued by Turnkey in response.
Sign the provided ProxyTOAuth2AuthenticateBody with the client's stamp function and submit the request (POST /v1/oauth2_authenticate).
See also: stampOAuth2Authenticate.
Implementation
/// Authenticate with an OAuth 2.0 provider and receive an OIDC token issued by Turnkey in response.
///
/// Sign the provided `ProxyTOAuth2AuthenticateBody` with the client's `stamp` function and submit the request (POST /v1/oauth2_authenticate).
///
/// See also: `stampOAuth2Authenticate`.
Future<ProxyTOAuth2AuthenticateResponse> proxyOAuth2Authenticate({
required ProxyTOAuth2AuthenticateBody input,
}) async {
return await authProxyRequest<ProxyTOAuth2AuthenticateBody,
ProxyTOAuth2AuthenticateResponse>("/v1/oauth2_authenticate", input,
(json) => ProxyTOAuth2AuthenticateResponse.fromJson(json));
}