Metadata-Version: 2.1
Name: rolling_token_auth
Version: 0.1.1
Summary: Rolling Token verificator & generator
Home-page: https://github.com/alexeichhorn/python-rolling-token-auth
Author: Alexander Eichhorn
Author-email: 
License: UNKNOWN
Description: # Rolling Token Authentication
        
        ## Usage
        
        ### Initialization
        ```
        from rolling_token_auth import RollingTokenManager
        
        manager = RollingTokenManager("secret", interval=3600)
        ```
        The `interval` defines how long a token is valid in seconds. Shorter = more secure.
        Both `secret` and `interval` must match between generation and verification.
        
        ### Generation
        ```
        manager.generate_token()
        ```
        This generates a token for the current timestamp. Optionally a `offset` can be declared.
        
        
        ## Verification
        ```
        manager.is_valid(token)
        ```
        This checks if the given token is valid for the current timestamp. The `manager.tolerance` parameter defines how many token from the past and future are still valid (default: 1 in each direction).
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
