Values.CreateOAuth2TokenRequestBodySourceRequest body payload for CreateOAuth2Token operation The operation type is determined by the grant_type parameter: grant_type=authorization_code: Requires code, redirect_uri, code_verifier grant_type=refresh_token: Requires refresh_token
type nonrec t = {clientId : ClientId.t;The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows
*)grantType : GrantType.t;OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"
*)code : AuthorizationCode.t option;The authorization code received from /v1/authorize Required only when grant_type=authorization_code
*)redirectUri : RedirectUri.t option;The redirect URI that must match the original authorization request Required only when grant_type=authorization_code
*)codeVerifier : CodeVerifier.t option;PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code
*)refreshToken : RefreshToken.t option;The refresh token returned from auth_code redemption Required only when grant_type=refresh_token
*)}val make :
?code:??? ->
?redirectUri:??? ->
?codeVerifier:??? ->
?refreshToken:??? ->
clientId:ClientId.t ->
grantType:GrantType.t ->
unit ->
t