You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using sentinel via the Native Facade. My app is an API thus it doesn't start a session. And sentinel shouldn't start one as well for stateless authentications.
Actual behaviour
Whenever I call any method via the Native Facade, it automatically starts a PHP session. Since my app is stateless, I don't want to start a session. Even calling Sentinel::stateless(); starts a session.
Is there any way I can use Sentinel statelessly without PHP session?
The text was updated successfully, but these errors were encountered:
It's creating a session because the native implementation do so require it.
I understand it might be undesirable that calling the stateless() method to create a session, but at the moment, with this code, that's not possible to do.
Unsure if there's a way, without many changes to the current native implementation, to achieve this, otherwise, you can just create your StatelessSession class and instruct Sentinel to use it perhaps. Just an idea.
It's creating a session because the native implementation do so require it.
I understand it might be undesirable that calling the stateless() method to create a session, but at the moment, with this code, that's not possible to do.
Unsure if there's a way, without many changes to the current native implementation, to achieve this, otherwise, you can just create your StatelessSession class and instruct Sentinel to use it perhaps. Just an idea.
Your Environment
Expected behaviour
I'm using sentinel via the Native Facade. My app is an API thus it doesn't start a session. And sentinel shouldn't start one as well for stateless authentications.
Actual behaviour
Whenever I call any method via the Native Facade, it automatically starts a PHP session. Since my app is stateless, I don't want to start a session. Even calling
Sentinel::stateless();
starts a session.Is there any way I can use Sentinel statelessly without PHP session?
The text was updated successfully, but these errors were encountered: