mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +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
|
||||
|
||||
- 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");
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user