Skip to content

Commit

Permalink
T 1331575: Updated Refresh Token API minimumExpirationTime to 5 minut…
Browse files Browse the repository at this point in the history
…es (#169)
  • Loading branch information
amrutakamat-mindbody authored Jul 10, 2024
1 parent 62ec0e6 commit 0e8ca31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Conduit/Auth/Models/OAuth2Token.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0e8ca31

Please sign in to comment.