rootinc / laravel-azure-middleware

94 stars 39 forks source link

Session never expires #41

Closed TheGlitch1 closed 3 years ago

TheGlitch1 commented 3 years ago

Hi everyone,

I noticed that the session never expires when I log in with azure, but when I log in with a login and password my session expires after some time Is there any way to logout the user after a while?

JustinByrne commented 3 years ago

In your AppAzure.php file you will have the following line

Auth::login($user, true);

Remove the true argument to prevent it from remembering the user

JustinByrne commented 3 years ago

Here is a link to the Laravel documentation with details about this method - https://laravel.com/docs/8.x/authentication#other-authentication-methods

TheGlitch1 commented 3 years ago

Thank you JustinByrne !