Skip to content
Multi token for django rest framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
tokens
.gitignore
CNAME
README.md
_config.yml
setup.py

README.md

Multi token for django rest framework

Using this app user can maintain seperate auth token for each device. Logout form one device will not logout other device. So multiple login is possiable using this app.

Installation

pip install django-multi-token

Settings File

INSTALLED_APPS = [
    ...
    'tokens'
    ...
]
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
        # 'rest_framework.authentication.TokenAuthentication',
        'tokens.models.MultiTokenAuthentication',
    )
}
You can’t perform that action at this time.