scipost.totp module

class scipost.totp.TOTPVerification(user)[source]

Bases: object

number_of_digits = 6
token_validity_period = 30
tolerance = 2
verify_code(code)[source]

Verify a time-dependent code for a certain User.

classmethod verify_token(secret_key, code)[source]

Independently verify a secret_key/code combination at current time.