No project description provided
Project description
Installation
$ pip install mbq.tokens
🚀✨
Guaranteed fresh.
Getting started
from mbq import tokens
tokens.init(
certificate=settings.FORMATTED_CERTIFICATE,
allowed_audiences=set(settings.ALLOWED_AUDIENCES),
)
try:
decoded_token = tokens.decode(token)
except tokens.TokenError:
# will only ever raise TokenError
logger.exception('Failed to decode token')
decoded_token = tokens.decode_header(request.META['HTTP_AUTHORIZATION'])
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
mbq.tokens-0.0.5.tar.gz
(6.1 kB
view details)
File details
Details for the file mbq.tokens-0.0.5.tar.gz
.
File metadata
- Download URL: mbq.tokens-0.0.5.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 902d6f088c2453c8a7926d81a06b3185adf78cae531b75fc751f3c78e4a9d6d6 |
|
MD5 | 3b633da966489de0b64975c477170502 |
|
BLAKE2b-256 | d030ea7d4a0f737f2865ea4ab6ad6145220d53b156aba92fa9e2d16269a0f66f |