Skip to content

Commit

Permalink
Fix jwt expires check
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Jan 27, 2023
1 parent 812e6ca commit 3ac1c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Vercel/JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ extension JWT {
}

public var expired: Bool {
guard let date = self.expiresAt else {
guard let expiresAt = self.expiresAt else {
return false
}
return Date() < date
return Date() > expiresAt
}
}

Expand Down

0 comments on commit 3ac1c1b

Please sign in to comment.