Skip to main content

Auth token jwt

Project description

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

Project details


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)

Uploaded Source

Built Distribution

auth_token-0.0.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page