Core/Security/Token/AuthToken.php
public function getToken(): string
    {
        if (empty($this->token)) {
            $this->setSize($this->token_size);
            $this->token = $this->generateRandomToken();
        }

        return $this->token;
    }
public function getToken(): string
    {
        if (empty($this->token)) {
            $this->setSize($this->token_size);
            $this->token = $this->generateRandomToken();
        }

        return $this->token;
    }
public function getToken ( ) : string { if ( empty ( $ this -> token ) ) { $ this -> setSize ( $ this -> token_size ) ; $ this -> token = $ this -> generateRandomToken ( ) ; } return $ this -> token ; }
Returns set token.

Generates a token when not set.

@return string
Returns set token .