Skip to content

Commit

Permalink
Update AWSCognitoNetworkPreferences.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Nov 24, 2023
1 parent d6593fb commit b5b8e2b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ public struct AWSCognitoNetworkPreferences {
public let timeoutIntervalForRequest: Double

/// The maximum amount of time that a resource request should be allowed to take.
public let timeoutIntervalForResource: Double
///
/// NOTE: Resource time out is only applicable to HostedUI ATM, because the underlying Swift SDK does
/// not support resource timeouts
public let timeoutIntervalForResource: Double?

public init(maxRetryCount: UInt32,
timeoutIntervalForRequest: Double,
timeoutIntervalForResource: Double) {
timeoutIntervalForResource: Double? = nil) {
self.maxRetryCount = maxRetryCount
self.timeoutIntervalForRequest = timeoutIntervalForRequest
self.timeoutIntervalForResource = timeoutIntervalForResource
Expand Down

0 comments on commit b5b8e2b

Please sign in to comment.