giorg
10 months ago

logout from other devices

Posted 10 months ago by giorg

Hello,

I've created a UserLoggedIn listener, where in the handle function I do:

$user = Auth::user(); if ($user) { Log::info('user logged in, trying to logout from other devices'); Auth::logoutOtherDevices($user->getAuthPassword()); }

I see the message in the log, but looks like this is not working for me, I was logged in with another browser and I expected to be logged out instead... what am I doing wrong?

Thanks a lot

Please sign in or create an account to participate in this conversation.