django-rest-framework-expiring-tokens icon indicating copy to clipboard operation
django-rest-framework-expiring-tokens copied to clipboard

allow use of a custom token model

Open BrunoVillanova opened this issue 7 years ago • 2 comments

This commit allow the use of a custom Token model for expiring token. Eg:

class CustomModelObtainExpiringAuthToken(ObtainExpiringAuthToken):
    model =CustomModelToken

obtain_expiring_auth_token = CustomModelObtainExpiringAuthToken.as_view()

BrunoVillanova avatar Sep 01 '17 18:09 BrunoVillanova

Coverage Status

Coverage remained the same at 100.0% when pulling dee4cf5068bd89bb074d86017f23230d227394bf on BrunoVillanova:master into e62f1f92a621575174172e970da624d367ac0cf6 on JamesRitchie:master.

coveralls avatar Sep 01 '17 18:09 coveralls

Coverage Status

Coverage remained the same at 100.0% when pulling dee4cf5068bd89bb074d86017f23230d227394bf on BrunoVillanova:master into e62f1f92a621575174172e970da624d367ac0cf6 on JamesRitchie:master.

coveralls avatar Sep 01 '17 18:09 coveralls