mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 20:37:46 +00:00
docs: fix /.well-known/oauth-protected-resource route (#4439)
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
This commit is contained in:
@@ -70,7 +70,7 @@ export const GET = oAuthDiscoveryMetadata(auth);
|
||||
|
||||
Add a route to expose protected resource metadata for MCP clients:
|
||||
|
||||
```ts title=".well-known/oauth-authorization-server/route.ts"
|
||||
```ts title="/.well-known/oauth-protected-resource/route.ts"
|
||||
import { oAuthProtectedResourceMetadata } from "better-auth/plugins";
|
||||
import { auth } from "@/lib/auth";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user