Skip to content

Commit

Permalink
OAuthHandler: Fix token expiration check
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Mar 23, 2020
1 parent 5aed2b6 commit fa08376
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TypedRest.OAuth/Http/AccessToken.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using IdentityModel.Client;

namespace TypedRest.Http
{
Expand All @@ -10,7 +9,7 @@ internal class AccessToken
private readonly DateTime _expiration;

public bool IsExpired
=> _expiration >= DateTime.Now;
=> DateTime.Now >= _expiration;

public AccessToken(string value, DateTime expiration)
{
Expand Down

0 comments on commit fa08376

Please sign in to comment.