Module Smaws_Client_CognitoIdentityProvider.GetTokensFromRefreshToken

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `ForbiddenException of Types.forbidden_exception | `InternalErrorException of Types.internal_error_exception | `InvalidLambdaResponseException of Types.invalid_lambda_response_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `RefreshTokenReuseException of Types.refresh_token_reuse_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnexpectedLambdaException of Types.unexpected_lambda_exception | `UserLambdaValidationException of Types.user_lambda_validation_exception | `UserNotFoundException of Types.user_not_found_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.get_tokens_from_refresh_token_request -> (Types.get_tokens_from_refresh_token_response, [> Smaws_Lib.Protocols.AwsJson.error | `ForbiddenException of Types.forbidden_exception | `InternalErrorException of Types.internal_error_exception | `InvalidLambdaResponseException of Types.invalid_lambda_response_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `RefreshTokenReuseException of Types.refresh_token_reuse_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnexpectedLambdaException of Types.unexpected_lambda_exception | `UserLambdaValidationException of Types.user_lambda_validation_exception | `UserNotFoundException of Types.user_not_found_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.get_tokens_from_refresh_token_request -> (Types.get_tokens_from_refresh_token_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `ForbiddenException of Types.forbidden_exception | `InternalErrorException of Types.internal_error_exception | `InvalidLambdaResponseException of Types.invalid_lambda_response_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `RefreshTokenReuseException of Types.refresh_token_reuse_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnexpectedLambdaException of Types.unexpected_lambda_exception | `UserLambdaValidationException of Types.user_lambda_validation_exception | `UserNotFoundException of Types.user_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result