platypush/plugins/otp/__init__.py
def verify_time_otp(self, otp: str, secret: Optional[str] = None, secret_path: Optional[str] = None) -> bool:
        """
        Verify a code against a stored time-OTP.

        :param otp: Code to be verified.
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: True if the code is valid, False otherwise.
        """
        _otp = self._get_topt(secret, secret_path)
        return _otp.verify(otp)

        Verify a code against a stored time-OTP.

        :param otp: Code to be verified.
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: True if the code is valid, False otherwise.
        
Verify a code against a stored time-OTP.
Verify a code against a stored time - OTP .
def verify_time_otp(self, otp: str, secret: Optional[str] = None, secret_path: Optional[str] = None) -> bool:
        _otp = self._get_topt(secret, secret_path)
        return _otp.verify(otp)
def verify_time_otp ( self , otp : str , secret : Optional [ str ] = None , secret_path : Optional [ str ] = None ) -> bool : _otp = self . _get_topt ( secret , secret_path ) return _otp . verify ( otp )
Verify a code against a stored time-OTP.
Verify a code against a stored time - OTP .
"""
        Verify a code against a stored time-OTP.

        :param otp: Code to be verified.
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: True if the code is valid, False otherwise.
        """
True if the code is valid, False otherwise.
True if the code is valid False otherwise .
self
otp
str
Code to be verified.
Code to be verified .
secret
Optional[str]
Secret token to be used (overrides configured ``secret``).
Secret token to be used ( overrides configured ` ` secret ` ` ) .
secret_path
Optional[str]
File containing the secret to be used (overrides configured ``secret_path``).
File containing the secret to be used ( overrides configured ` ` secret_path ` ` ) .