Metadata-Version: 2.1
Name: user-authentication-jr
Version: 0.0.2
Summary: A token based User model package with support for Cookies and API token authentication
Home-page: https://github.com/jrbenriquez/user-authentication-jr
Author: John Rei Enriquez
Author-email: johnrei.enriquez@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# User Authentication with Token and/or Cookie Support

This is an initial readme.
Check out PYPI: https://pypi.org/project/user-authentication-jr/

Add this to your settings:

  - add to `INSTALLED_APPS`
  ```
     INSTALLED_APPS = [
     ...,
     'authentication',
     ]
  ```

  - to use the User model

  ```
    AUTH_USER_MODEL = 'authentication.User'
  ```

  - add authentication class
   ```

   DEFAULT_AUTHENTICATION_CLASSES = [...., 'authentication.utils.token.ExpiringTokenAuthentication']
   REST_FRAMEWORK_TOKEN_SECONDS_EXPIRY = 3600
   ```
   - add url entry for module to your urls.py
   ```
    path('auth/', include('authentication.urls')),
   ```


