Skip to content

Commit

Permalink
T 1377658: Update minimumExpirationTime time (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshulMindbody authored Nov 27, 2024
1 parent 0e8ca31 commit 9182600
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 = 300 // 5 minutes
let minimumExpirationTime: TimeInterval = 360 // 6 minutes
let minimumExpirationDate = Date().addingTimeInterval(minimumExpirationTime)
return self.expiration > minimumExpirationDate
}
Expand Down

0 comments on commit 9182600

Please sign in to comment.