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

Logout while invalid state.. #105

Open sachinuthale opened 1 year ago

sachinuthale commented 1 year ago

Many times when the user refreshes the page after a long time, due to an inactive state error we get a white screen with too many redirect errors. Can we solve this by adding a logout URL in the invalid state exception ??

Can we do this ?? throw new KeycloakCallbackException('Invalid state'); $this->logout();