tymondesigns / jwt-auth

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

Fixing getMinutesUntilExpired error #2251

Open mohph197 opened 8 months ago

mohph197 commented 8 months ago

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

Fixes #2250