mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 07:18:56 -05:00
docs(concepts/plugins): added missing import for getSessionFromCtx section (#4952)
This commit is contained in:
@@ -365,6 +365,7 @@ Allows you to get the client's session data by passing the auth middleware's `co
|
||||
|
||||
```ts title="plugin.ts"
|
||||
import { createAuthMiddleware } from "better-auth/plugins";
|
||||
import { getSessionFromCtx } from "better-auth/api";
|
||||
|
||||
const myPlugin = {
|
||||
id: "my-plugin",
|
||||
|
||||
Reference in New Issue
Block a user