src/main/php/auth/TokenAwareUser.php
public function createToken(string $tokenSalt): Token
    {
        $this->setToken(Token::create($this, $tokenSalt));
        return $this->token();
    }
public function createToken(string $tokenSalt): Token
    {
        $this->setToken(Token::create($this, $tokenSalt));
        return $this->token();
    }
public function createToken ( string $ tokenSalt ) : Token { $ this -> setToken ( Token :: create ( $ this , $ tokenSalt ) ) ; return $ this -> token ( ) ; }
creates new token for the user with given token salt

The token is already stored in the user afterwards, any further request
to token() will yield the same token.

@param   string  $tokenSalt
@return  \stubbles\webapp\auth\Token
creates new token for the user with given token salt