The documentation you are viewing is for an older version of this component.
Switch to the latest (v3) version.
Install dot-authentication by executing the following Composer command:
composer require dotkernel/dot-authentication