Skip to content

Commit 915e3d2

Browse files
committed
update error response format in auth-info README
1 parent 2ba37fc commit 915e3d2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

exercises/03.auth-info/README.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@ console.log(result.sub) // user id
4141

4242
If a token is invalid, your server should return a clear error response. This helps clients know when to prompt users to log in again.
4343

44-
```json filename="response.json"
45-
{
46-
"error": "invalid_token",
47-
"error_description": "The access token is invalid or expired."
48-
}
44+
```txt filename="response.txt"
45+
WWW-Authenticate: Bearer realm="EpicMe", error="invalid_token", error_description="The access token is invalid or expired.", resource_metadata=https://example.com/.well-known/oauth-protected-resource/mcp
4946
```
5047

5148
<callout-warning>

0 commit comments

Comments
 (0)