mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
docs: fix import statement in your-first-plugin.mdx (#8598)
This commit is contained in:
committed by
Alex Yang
parent
0476620253
commit
e4331c7db7
@@ -118,8 +118,7 @@ In our case we want to match any requests going to the signup path:
|
||||
|
||||
And for our logic, we’ll write the following code to check the if user’s birthday makes them above 5 years old.
|
||||
```ts title="Imports"
|
||||
import { APIError } from "better-auth/api";
|
||||
import { createAuthMiddleware } from "better-auth/plugins";
|
||||
import { createAuthMiddleware, APIError } from "better-auth/api";
|
||||
```
|
||||
```ts title="Before hook"
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user