src/Leevel/Auth/Token.php
protected function getTokenNameFromRequest(): string
    {
        $token = $this->request->query($this->option['input_token'], '');

        if (!$token) {
            $token = $this->request->input($this->option['input_token'], '');
        }

        return $token;
    }
protected function getTokenNameFromRequest(): string
    {
        $token = $this->request->query($this->option['input_token'], '');

        if (!$token) {
            $token = $this->request->input($this->option['input_token'], '');
        }

        return $token;
    }
从请求中获取 token.

@return string