Middleware to intercept JWT auth token and more utils functions
Project description
JSM User JWT Service
Middleware to intercept JWT auth token and more utils functions
Install
pip install jsm_user_service
Add jsm_user_service
to your INSTALLED_APPS
:
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"jsm_user_services",
"app_test",
]
Add the Middleware:
MIDDLEWARE = [
...
"jsm_user_services.middleware.JsmJwtService",
]
Use
from jsm_user_services.services.user import current_jwt_token
from jsm_user_services.services.user import get_jsm_token
from jsm_user_services.services.user import get_jsm_user_data_from_jwt
from jsm_user_services.services.user import get_ltm_token
from jsm_user_services.services.user import get_ltm_user_data_from_jwt
from jsm_user_services.services.user import get_user_email_from_jwt
current_jwt_token()
get_jsm_token()
get_ltm_token()
get_jsm_user_data_from_jwt()
get_ltm_user_data_from_jwt()
get_user_email_from_jwt()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for jsm_user_services-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fb821a5b6665354f70fad0ec50c436fdef88f355b9e7f55eaa3bdf7a4b5e7f |
|
MD5 | 58baba10dac6755263ff19817a41c566 |
|
BLAKE2b-256 | 3b3e92c332b5b4a6475d3da1ee78591f850151f7c4e189843c91782047151239 |