You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Salcedo 8e9e899a20 fix for 'NoneType' object has no attribute 'is_active' 1 month ago
django_yajwt fix for 'NoneType' object has no attribute 'is_active' 1 month ago
.gitignore initial commit 4 months ago
Pipfile hash out initial middleware and auth class 4 months ago
Pipfile.lock hash out initial middleware and auth class 4 months ago
README.md update readme 4 months ago
requirements.txt attempt multipurpose class 3 months ago
setup.py add setup.py 4 months ago

README.md

Django Yet Another JSON Web Token Middleware

YAJWT = {
    # Required
    'SECRET_KEY': 'muchsecretmanysecure',
    'COOKIE_DOMAIN': 'example.com',

    # Optional
    'COOKIE_EXPIRES': timedelta(hours=1) # same as REFRESH_LIFETIME if not set
    'COOKIE_NAME': 'refreshtoken',
    'COOKIE_PATH': '/',
    'COOKIE_SECURE': True,
    'COOKIE_SAMESITE': 'Stict',
    'TOKEN_PREFIX': 'Bearer',
    'ALGORITHM': 'HS256',
    'ACCESS_LIFETIME': timedelta(minutes=15),
    'REFRESH_LIFETIME': timedelta(hours=1),
}