No project description provided
Project description
Installation
$ pip install mbq.tokens
🚀✨
Guaranteed fresh.
Getting started
from mbq import tokens
tokens.init(
public_key=settings.PUBLIC_KEY,
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.2.tar.gz
(6.1 kB
view hashes)