Skip to content

Commit bae5c14

Browse files
committed
fixup: doh
1 parent 729d85a commit bae5c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function tokenExpiryInSeconds(
151151
tokenSet.claims?.().exp) ||
152152
tokenSet.expires_at ||
153153
0;
154-
return Math.max(0, (expiresAt ?? 0) - Date.now() / 1000);
154+
return Math.max(0, (expiresAt ?? 0) - now / 1000);
155155
}
156156

157157
/** @internal Exported for testing only */

0 commit comments

Comments
 (0)