Replies: 2 comments
-
EDIT: changed the category from Q&A to Ideas |
Beta Was this translation helpful? Give feedback.
0 replies
-
Has the problem been solved? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It doesn't look like this feature isn't available on Sanctum SPA Authentication, the one I saw in docs
Auth::logoutOtherDevices($currentPassword);
needs to uncomment the AuthenticateSession middleware in web:
So I googled how to implement the same thing in Sanctum SPA Authentication and found this youtube video. The instruction is pretty simple:
$this->auth->getDefaultDriver()
with
$this->driver
And just like that I can not use Auth::logoutOtherDevices($password) in my app. The thing is this is not intended feature of laravel spa sanctum so even though it works, I'm not confident if it's safe. I mean, it is pretty simple, right? So maybe there's e a reason why the laravel devs did not implement that? Maybe it has some bugs and security risk?
Beta Was this translation helpful? Give feedback.
All reactions