joselfonseca / lighthouse-graphql-passport-auth

Add GraphQL mutations to get tokens from passport for https://lighthouse-php.com/
https://lighthouse-php-auth.com/
MIT License
229 stars 56 forks source link

Which events should I listen to keep track of login, logout activites ? #92

Closed canatufkansu closed 4 years ago

canatufkansu commented 4 years ago

Hi,

I'm implementing Spatie's Activity Log (https://github.com/spatie/laravel-activitylog) to keep track of all Auth activities in the API. Which events should I listen for Login, Logout, RefreshToken, Register, ForgotPassword and UpdatePassword ?

If I could listen Failed Login and Failed Update Password attempts that would be great.

Thanks,

joselfonseca commented 4 years ago

hello, At the moment we only count with the events for auth and whatever passport provides, PRs are welcome!

joselfonseca commented 4 years ago

working this on this branch https://github.com/joselfonseca/lighthouse-graphql-passport-auth/tree/feature/adding-events

joselfonseca commented 4 years ago

Added this events

https://github.com/joselfonseca/lighthouse-graphql-passport-auth/pull/106

It will be released on 5.0 with a few other changes.