docs: fix typo on funtion name getSignedCookie (#5059)

Signed-off-by: rogerogers <rogers@rogerogers.com>
This commit is contained in:
copy rogers
2025-10-03 16:07:42 +08:00
committed by GitHub
parent 4a92c81565
commit 2d1ed69c00

View File

@@ -136,7 +136,7 @@ const hook = createAuthMiddleware(async (ctx) => {
#### Cookies
- Set cookies: `ctx.setCookies` or `ctx.setSignedCookie`.
- Get cookies: `ctx.getCookies` or `ctx.getSignedCookies`.
- Get cookies: `ctx.getCookies` or `ctx.getSignedCookie`.
Example:
@@ -150,7 +150,7 @@ const hook = createAuthMiddleware(async (ctx) => {
});
const cookie = ctx.getCookies("my-cookie");
const signedCookie = await ctx.getSignedCookies("my-signed-cookie");
const signedCookie = await ctx.getSignedCookie("my-signed-cookie");
});
```