I'm working with an app that has an Backend API for mobile and Web Login for Administrators. The authentication of Backend API was jwt-auth 0.5.*
and for my Administrators I used the session driver.
This is the default of auth:
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'admin' => [
'driver' => 'session',
'provider' => 'admins',
],
The Backend API Authentication works but the Web Admin Authentication doesn't save the session of the logged in administrator. By the way I created a guard for administrators.
How can I handle this situation?