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 details)
Built Distribution
File details
Details for the file auth-token-0.0.3.tar.gz
.
File metadata
- Download URL: auth-token-0.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2558acd0b7fba2e133baf4b02824eeda777a43ce0ee5eff00f3384fe405481 |
|
MD5 | 79fe9190e4dbe6415952a7aac3ccf736 |
|
BLAKE2b-256 | ada295f7802ebfd35a5fe72344a62661578c9c55b1f77e3ac3b2925f4b1e45ed |
File details
Details for the file auth_token-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: auth_token-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f138145efe7ed3fa4bfc024dac4c774cbf8ba7575271ce4e13e727c22547c15 |
|
MD5 | 444b75b849c62659274115ab92747d5e |
|
BLAKE2b-256 | bec10aa98d40e147ee10238d4b85a9ab4a7720db4c62f99c62d72d1ae6144297 |