Signals (durin.signals)

Durin provides 2 custom signals that can be subscribed to the same way as done for Django’s Inbuilt Signals.


token_expired

durin.signals.token_expired = <django.dispatch.dispatcher.Signal object>

When a token is expired and deleted.

providing_args=[“username”, “source”]


token_renewed

durin.signals.token_renewed = <django.dispatch.dispatcher.Signal object>

When a token is renewed by either durin.views.LoginView or durin.views.RefreshView.

providing_args=[“request”, “new_expiry”]