Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Active Users? #16

Open
jjjrmy opened this issue Dec 7, 2021 · 2 comments
Open

API Active Users? #16

jjjrmy opened this issue Dec 7, 2021 · 2 comments

Comments

@jjjrmy
Copy link

jjjrmy commented Dec 7, 2021

When using a REST API for a SPA then users don't show up active.
Is there any way to see active logged in users also including SPA users?

@joshrainwater
Copy link
Owner

Are you using Sanctum with the stateful SPA? Or completely stateless API with JWT or something along those lines?

I would think with a stateful API you would have the same session scaffolding so you could see the active sessions, but I'm not sure how you would pull it off with JWT. I would think it would depend on the library you're using, maybe you could grab any active tokens, or maybe there's a last login time?

@kardoaziz
Copy link

Users who are login and requested through api.php not web.php in the routes, are not counted because I see table sessions are not getting updated if you log in through API. Is there a way to make those users get counted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants