mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

token expired check fix #40

Closed gorkagv closed 3 years ago

gorkagv commented 3 years ago

The checking to know if the token has expired was upside down. The hasExpired function was returning true if $exp was greater than time(). The hasExpired function only should returning true when the $exp is less than or equal time(), that is, when the token has expired.

mariovalney commented 3 years ago

Thanks @gorkagv !