docs(concepts/plugins): added missing import for getSessionFromCtx section (#4952)

This commit is contained in:
Joel Castillo
2025-09-30 17:00:48 -05:00
committed by GitHub
parent 61b446ae9f
commit 53eed91f4a

View File

@@ -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",