From bcfbc1d2f811b803ddde2c12aa7863b92a5c9f92 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 13 Mar 2024 08:18:35 +0100 Subject: [PATCH] Add constants for designated mechanisms for OTP generation/delivery --- src/Auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Auth.php b/src/Auth.php index 638762b..338d0a9 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -21,6 +21,9 @@ final class Auth extends UserManager { const COOKIE_PREFIXES = [ Cookie::PREFIX_SECURE, Cookie::PREFIX_HOST ]; const COOKIE_CONTENT_SEPARATOR = '~'; + const TWO_FACTOR_MECHANISM_TOTP = 1; + const TWO_FACTOR_MECHANISM_SMS = 2; + const TWO_FACTOR_MECHANISM_EMAIL = 3; /** @var string the user's current IP address */ private $ipAddress;