fix(mcp): return a Response from the consent view closure
Passport::authorizationView's typed contract expects a Closure returning a Symfony Response; use response()->view(...) so static analysis passes.
This commit is contained in:
parent
fb877faa0e
commit
15d70d2db9
|
|
@ -59,6 +59,6 @@ class AppServiceProvider extends ServiceProvider
|
|||
|
||||
// Render the OAuth consent screen (Claude Desktop / ChatGPT connecting
|
||||
// to the MCP server) with our own on-brand Blade view.
|
||||
Passport::authorizationView(fn (array $parameters) => view('mcp.authorize', $parameters));
|
||||
Passport::authorizationView(fn (array $parameters) => response()->view('mcp.authorize', $parameters));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue