Auth token jwt
Project description
Auth-token
Package Auth token jwt
Package installation
- Installation
$ pip3 install auth-token
Docs
Examples
>>> from auth_token import AuthToken
>>> identifier = '12345678'
>>> exp_minutes = 60
>>> secret_key = 'secret_key'
>>> auth = AuthToken(identifier, exp_minutes, secret_key)
>>> response = auth.encode()
>>> print(response.token)
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODc5NTY5ODQsImlhdCI6MTU4Nzk1NjY4NCwic3ViIjoiMSIsInV1aWQiOiJhYTUwNWE3ZS1hMjEyLTRiOTktYmI3Yy02Njg3MjViZGQ3YTcifQ.l1uGXiZpZHuOt0iWmcksLsdkUQjYesH_OxmCpjJHWDk'
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
auth-token-0.0.3.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for auth_token-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f138145efe7ed3fa4bfc024dac4c774cbf8ba7575271ce4e13e727c22547c15 |
|
MD5 | 444b75b849c62659274115ab92747d5e |
|
BLAKE2b-256 | bec10aa98d40e147ee10238d4b85a9ab4a7720db4c62f99c62d72d1ae6144297 |