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.9.tar.gz
(6.2 kB
view details)
File details
Details for the file mbq.tokens-0.0.9.tar.gz
.
File metadata
- Download URL: mbq.tokens-0.0.9.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99a9449b08344f4297dfb8772d610575e0d31254e696cf389dd0234b3c74138b |
|
MD5 | 6a14ab51f65673a86403ce6f820909c0 |
|
BLAKE2b-256 | 12381eb14f19dacf1fde8fe9fd72c89b82b0bee01927662520616be4984fa847 |