jazzband / django-rest-knox

Authentication Module for django rest auth
MIT License
1.18k stars 213 forks source link

TOKEN_LIMIT_PER_USER does not seem to be implemented #197

Closed vaniatoperich closed 5 years ago

vaniatoperich commented 5 years ago

I am trying to limit the number of Token's issued per user, but it does not work (seems like it is not implemented at all?)

johnraz commented 5 years ago

the check is done here: https://github.com/James1345/django-rest-knox/blob/4e871880a3888a83f922ca5fdd13f5777f9e2423/knox/views.py#L57

it only checks non expired token btw.

johnraz commented 5 years ago

i’ll close, please reopen if something doesn’t work as expected