src/Traits/TwoFactorAuthenticatesUsers.php
protected function isValidTwoFactorPhone(AuthenticatableTwoFactorContract $user, int $token): bool
    {
        $settings = $user->getTwoFactor();
        $authyId = array_get($settings, 'phone.authy_id');

        return in_array(mb_strlen($token), [6, 7, 8]) && app('rinvex.authy.token')->verify($token, $authyId)->succeed();
    }
protected function isValidTwoFactorPhone(AuthenticatableTwoFactorContract $user, int $token): bool
    {
        $settings = $user->getTwoFactor();
        $authyId = array_get($settings, 'phone.authy_id');

        return in_array(mb_strlen($token), [6, 7, 8]) && app('rinvex.authy.token')->verify($token, $authyId)->succeed();
    }
protected function isValidTwoFactorPhone ( AuthenticatableTwoFactorContract $ user , int $ token ) : bool { $ settings = $ user -> getTwoFactor ( ) ; $ authyId = array_get ( $ settings , 'phone.authy_id' ) ; return in_array ( mb_strlen ( $ token ) , [ 6 , 7 , 8 ] ) && app ( 'rinvex.authy.token' ) -> verify ( $ token , $ authyId ) -> succeed ( ) ; }
Determine if the given token is a valid TwoFactor Phone token.

@param \Rinvex\Auth\Contracts\AuthenticatableTwoFactorContract $user
@param int                                                     $token

@return bool
Determine if the given token is a valid TwoFactor Phone token .