public function getToken()
    {
        $token = $this->cache->get($this->tokenName);
        if ($token === false) {
            $token = Algorithms::generateRandomToken(20);
            $this->storeToken($token);
        }
        return $token;
    }
public function getToken()
    {
        $token = $this->cache->get($this->tokenName);
        if ($token === false) {
            $token = Algorithms::generateRandomToken(20);
            $this->storeToken($token);
        }
        return $token;
    }
public function getToken ( ) { $ token = $ this -> cache -> get ( $ this -> tokenName ) ; if ( $ token === false ) { $ token = Algorithms :: generateRandomToken ( 20 ) ; $ this -> storeToken ( $ token ) ; } return $ token ; }
Fetch the token or generate a new random token

@return string
Fetch the token or generate a new random token