mirror of
https://github.com/bitwarden/browser
synced 2026-02-16 16:59:30 +00:00
changed timeout to be spec recommended maxium, 10 minutes, for now.
This commit is contained in:
@@ -188,15 +188,15 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
||||
*/
|
||||
|
||||
private func createTimer() -> DispatchWorkItem {
|
||||
// Create a timer for 180 second timeout
|
||||
// Create a timer for 600 second timeout
|
||||
let timeoutTimer = DispatchWorkItem { [weak self] in
|
||||
guard let self = self else { return }
|
||||
logger.log("[autofill-extension] The operation timed out after 180 seconds")
|
||||
logger.log("[autofill-extension] The operation timed out after 600 seconds")
|
||||
self.extensionContext.cancelRequest(withError: BitwardenError.Internal("The operation timed out"))
|
||||
}
|
||||
|
||||
// Schedule the timeout
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 180, execute: timeoutTimer)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 600, execute: timeoutTimer)
|
||||
|
||||
return timeoutTimer
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user