From 0e8ca315162f8d94a4e2b9e2f9205df5decfc269 Mon Sep 17 00:00:00 2001 From: amrutakamat-mindbody <145741623+amrutakamat-mindbody@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:41:07 +0530 Subject: [PATCH] T 1331575: Updated Refresh Token API minimumExpirationTime to 5 minutes (#169) --- Sources/Conduit/Auth/Models/OAuth2Token.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Conduit/Auth/Models/OAuth2Token.swift b/Sources/Conduit/Auth/Models/OAuth2Token.swift index 698d8d8c..a710007e 100644 --- a/Sources/Conduit/Auth/Models/OAuth2Token.swift +++ b/Sources/Conduit/Auth/Models/OAuth2Token.swift @@ -28,7 +28,7 @@ public struct BearerToken: OAuth2Token, DataConvertible, Codable, Equatable { public let expiration: Date public var isValid: Bool { - let minimumExpirationTime: TimeInterval = 900 // 15 minutes + let minimumExpirationTime: TimeInterval = 300 // 5 minutes let minimumExpirationDate = Date().addingTimeInterval(minimumExpirationTime) return self.expiration > minimumExpirationDate }