tymondesigns/jwt-auth · error · BadMethodCallException

Method [$method] does not exist.

Error message

Method [$method] does not exist.

What it means

Error "Method [$method] does not exist." thrown in tymondesigns/jwt-auth.

Source

Thrown at src/JWTGuard.php:435

     * Magically call the JWT instance.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        if (method_exists($this->jwt, $method)) {
            return call_user_func_array([$this->jwt, $method], $parameters);
        }

        if (static::hasMacro($method)) {
            return $this->macroCall($method, $parameters);
        }

        throw new BadMethodCallException("Method [$method] does not exist.");
    }
}

View on GitHub (pinned to 6c70930a92)

When it happens

Trigger: Thrown at src/JWTGuard.php:435 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tymondesigns/jwt-auth@6c70930a92 (2026-08-21). Data as JSON: /api/errors/8bab1bd469a288f0. Report an issue: GitHub.