Open ricardocamposilva opened 4 years ago
This https://github.com/davesque/django-rest-framework-simplejwt/pull/196 should to it, although I wonder what should happen on token refresh (impressive job, by the way, @davesque)
As I see it, it should:
Emit logged_in if refresh OK Emit login_failed if token is invalid Emit logged_out if token is valid but expired
Roughly this: https://github.com/sieira/django-rest-framework-simplejwt/pull/1 (the latest is a proposition, not a real pull request, since I doubt we can centralise the signal handling like that )
This would be a solid addition and I just came here looking to see if this was already supported. :+1:
Wouldn't it be better?
If implemented this feature developers could apply their own logic around it and use where they want. In this case I think it's more for security and audit purposes, today I have to apply lots of code lines to record a log raster.