mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
docs: fix typo on funtion name getSignedCookie (#5059)
Signed-off-by: rogerogers <rogers@rogerogers.com>
This commit is contained in:
@@ -136,7 +136,7 @@ const hook = createAuthMiddleware(async (ctx) => {
|
|||||||
#### Cookies
|
#### Cookies
|
||||||
|
|
||||||
- Set cookies: `ctx.setCookies` or `ctx.setSignedCookie`.
|
- Set cookies: `ctx.setCookies` or `ctx.setSignedCookie`.
|
||||||
- Get cookies: `ctx.getCookies` or `ctx.getSignedCookies`.
|
- Get cookies: `ctx.getCookies` or `ctx.getSignedCookie`.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ const hook = createAuthMiddleware(async (ctx) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const cookie = ctx.getCookies("my-cookie");
|
const cookie = ctx.getCookies("my-cookie");
|
||||||
const signedCookie = await ctx.getSignedCookies("my-signed-cookie");
|
const signedCookie = await ctx.getSignedCookie("my-signed-cookie");
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user