src/Koldy/Security/Csrf.php
public static function hasTokenStored(): bool
    {
        if (static::$token === null) {
            try {
                static::$token = static::getStoredToken();
            } catch (SecurityException $e) {
                // do nothing, so false will be returned
            }
        }

        return static::$token !== null;
    }
public static function hasTokenStored(): bool
    {
        if (static::$token === null) {
            try {
                static::$token = static::getStoredToken();
            } catch (SecurityException $e) {
                // do nothing, so false will be returned
            }
        }

        return static::$token !== null;
    }
public static function hasTokenStored ( ) : bool { if ( static :: $ token === null ) { try { static :: $ token = static :: getStoredToken ( ) ; } catch ( SecurityException $ e ) { // do nothing, so false will be returned } } return static :: $ token !== null ; }
Is there CSRF token stored in the session?

@return bool
@throws ConfigException
@throws \Koldy\Exception
Is there CSRF token stored in the session?