diff --git a/platypush/plugins/otp/__init__.py b/platypush/plugins/otp/__init__.py index f199b68999..ae1fa6a7cd 100644 --- a/platypush/plugins/otp/__init__.py +++ b/platypush/plugins/otp/__init__.py @@ -80,7 +80,7 @@ class OtpPlugin(Plugin): :return: The new secret token. """ - return pyotp.random_base32() + return str(pyotp.random_base32()) @action def refresh_secret(self, secret_path: Optional[str] = None) -> str: