Atk4-login not working with atk4 2.2

Hi, I’ve just setup a real basic login. This used to work in atk4 < 2.1. I still adapted it slightly to follow the new array/seed…but it still throws an error.
Here’s an example:

include __DIR__."/../vendor/autoload.php";
$db = new \atk4\data\Persistence\SQL('mysql:dbname=dbname;host=localhost', 'root', 'root');

$app = new \atk4\ui\App();
$app->db = $db;

    ->setModel(new User($app->db));

throws an error (see attached picture)

How did you make atk4-login working in 2.2? Or what am I missing?

Did not try it that way, but this works also for 2.2 - $this is an app object.
$this->auth = $this->add(new \atk4\login\Auth([‘check’=>true]));