src/PicoAuthPlugin.php
public function onRequestUrl(&$url)
    {
        $this->requestUrl = $url;

        try {
            // Plugin initialization
            $this->init();

            // Check submissions in all modules and apply their routers
            $this->triggerEvent('onPicoRequest', [$url, $this->request]);
        } catch (\Exception $e) {
            $this->errorHandler($e, $url);
        }
        
        if (!$this->errorOccurred) {
            $this->authRoutes();
        }
    }
public function onRequestUrl(&$url)
    {
        $this->requestUrl = $url;

        try {
            // Plugin initialization
            $this->init();

            // Check submissions in all modules and apply their routers
            $this->triggerEvent('onPicoRequest', [$url, $this->request]);
        } catch (\Exception $e) {
            $this->errorHandler($e, $url);
        }
        
        if (!$this->errorOccurred) {
            $this->authRoutes();
        }
    }
Pico API event - onRequestUrl

Runs active authentication and authorization modules.

@param string $url Pico page id (e.g. "index" or "sub/page")