Skip to main content

Auth-token

Package Auth token jwt

pipeline status coverage report

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'

Edit in Gitlab

Metadata

Release files for auth-token 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auth-token 0.0.3
File Size Uploaded
auth-token-0.0.3.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auth-token 0.0.3
File Interpreter ABI Platform
auth_token-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / auth-token-0.0.3.tar.gz

Download URL auth-token-0.0.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7b2558acd0b7fba2e133baf4b02824eeda777a43ce0ee5eff00f3384fe405481
BLAKE2b-256 checksum
How to use checksums
ada295f7802ebfd35a5fe72344a62661578c9c55b1f77e3ac3b2925f4b1e45ed
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / auth_token-0.0.3-py3-none-any.whl

Download URL auth_token-0.0.3-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f138145efe7ed3fa4bfc024dac4c774cbf8ba7575271ce4e13e727c22547c15
BLAKE2b-256 checksum
How to use checksums
bec10aa98d40e147ee10238d4b85a9ab4a7720db4c62f99c62d72d1ae6144297
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page