laravel / fortify

Backend controllers and scaffolding for Laravel authentication.

Home Page:https://laravel.com/docs/fortify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bring "Logout other sessions" feature from Jetstream

rogervila opened this issue · comments

Hello,

Jetstream comes with a very handy feature that allows users to logout from other sessions

It would be nice to bring this feature to Fortify.

The configuration would look like this:

'features' => [
    Features::logoutOtherSessions([
        'confirmPassword' => true,
    ]),
],

If this idea receives support, I could work on a PR.

Thank you.

I feel there's an opportunity here since there's duplicated code now between the inertia and livewire implementations. But let me first check with the team before you send in the PR.

I have no plans to implement this and it wouldn't be high on my priority list as far as PRs to review. Sorry! Feel free to copy the code from Jetstream into your own app and modify it to your needs though.