public function getPublicKey() {
        return (
            $this->headers->get('X-Imbo-PublicKey', null) ?:
            $this->query->get('publicKey', null) ?:
            ($this->route ? $this->route->get('user') : null)
        );
    }