Module Awso_cognito_idp.GetTokensFromRefreshTokenResponseSource

Given a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.

Sourcetype nonrec t = {
  1. authenticationResult : AuthenticationResultType.t option;
}
Sourcetype nonrec error = [
  1. | `ForbiddenException of ForbiddenException.t
  2. | `InternalErrorException of InternalErrorException.t
  3. | `InvalidLambdaResponseException of InvalidLambdaResponseException.t
  4. | `InvalidParameterException of InvalidParameterException.t
  5. | `NotAuthorizedException of NotAuthorizedException.t
  6. | `RefreshTokenReuseException of RefreshTokenReuseException.t
  7. | `ResourceNotFoundException of ResourceNotFoundException.t
  8. | `TooManyRequestsException of TooManyRequestsException.t
  9. | `UnexpectedLambdaException of UnexpectedLambdaException.t
  10. | `UserLambdaValidationException of UserLambdaValidationException.t
  11. | `UserNotFoundException of UserNotFoundException.t
  12. | `Unknown_operation_error of string * string option
]
Sourceval make : ?authenticationResult:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ForbiddenException of ForbiddenException.t | `InternalErrorException of InternalErrorException.t | `InvalidLambdaResponseException of InvalidLambdaResponseException.t | `InvalidParameterException of InvalidParameterException.t | `NotAuthorizedException of NotAuthorizedException.t | `RefreshTokenReuseException of RefreshTokenReuseException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnexpectedLambdaException of UnexpectedLambdaException.t | `Unknown_operation_error of string * string option | `UserLambdaValidationException of UserLambdaValidationException.t | `UserNotFoundException of UserNotFoundException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ForbiddenException of ForbiddenException.t | `InternalErrorException of InternalErrorException.t | `InvalidLambdaResponseException of InvalidLambdaResponseException.t | `InvalidParameterException of InvalidParameterException.t | `NotAuthorizedException of NotAuthorizedException.t | `RefreshTokenReuseException of RefreshTokenReuseException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnexpectedLambdaException of UnexpectedLambdaException.t | `Unknown_operation_error of string * string option | `UserLambdaValidationException of UserLambdaValidationException.t | `UserNotFoundException of UserNotFoundException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Integer of IntegerType.t | `String of TokenModelType.t | `Structure of (string * [> `String of DeviceKeyType.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t