mariovalney/laravel-keycloak-web-guard

[Keycloak Error] User cannot be authenticated

Closed this issue · 2 comments

#40

The hasExpired function (KeycloakAccessToken) 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.

i`m having the same problem

Hi!
I'm really sorry for the inconvenience and thanks for your PR. It's already fixed in 2.3.1.

Note: Even with this problem the auth process should works, but will always refresh the access token.