public static function verify($token, $strict = false)
    {

        if (!Session::getInstance()->has('__bow.csrf')) {
            return false;
        }

        $csrf = Session::getInstance()->get('__bow.csrf');

        if ($token !== $csrf['token']) {
            return false;
        }

        $status = true;

        if ($strict) {
            $status = $status && static::CsrfExpirated(time());
        }

        return $status;
    }
public static function verify($token, $strict = false)
    {

        if (!Session::getInstance()->has('__bow.csrf')) {
            return false;
        }

        $csrf = Session::getInstance()->get('__bow.csrf');

        if ($token !== $csrf['token']) {
            return false;
        }

        $status = true;

        if ($strict) {
            $status = $status && static::CsrfExpirated(time());
        }

        return $status;
    }
public static function verify ( $ token , $ strict = false ) { if ( ! Session :: getInstance ( ) -> has ( '__bow.csrf' ) ) { return false ; } $ csrf = Session :: getInstance ( ) -> get ( '__bow.csrf' ) ; if ( $ token !== $ csrf [ 'token' ] ) { return false ; } $ status = true ; if ( $ strict ) { $ status = $ status && static :: CsrfExpirated ( time ( ) ) ; } return $ status ; }
Check if csrf token is valid

@param string $token
@param bool   $strict

@return boolean
Check if csrf token is valid