diff --git a/README.md b/README.md index 59f55de..2ac5b55 100644 --- a/README.md +++ b/README.md @@ -324,7 +324,9 @@ const handler = protectedResourceHandler({ authServerUrls: ["https://auth-server.com"], }); -export { handler as GET, metadataCorsOptionsRequestHandler as OPTIONS }; +const corsHandler = metadataCorsOptionsRequestHandler() + +export { handler as GET, corsHandler as OPTIONS }; ``` This endpoint provides: