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

Sometimes Auth::user provide a boolean #6

Closed saooti closed 4 years ago

saooti commented 4 years ago

This is due to authenticate() method wich return a boolean. If use of ternary operator you can get a user (if exists) or bool (result of authenticate() method)

mariovalney commented 4 years ago

Hey! Thanks for your contribution!

Would you just check my comment before I merge?

saooti commented 4 years ago

File updated Thx