tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.23k stars 1.55k forks source link

Fixing getMinutesUntilExpired error #2251

Open mohph197 opened 3 months ago

mohph197 commented 3 months ago

The difference in minutes should be calculated with abs(), since diffInMinutes does: $now - $this (resulting in a negative value)

Fixes #2250