mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
docs: update SolidStart auth handler file path (#8470)
This commit is contained in:
committed by
Alex Yang
parent
497b1db8d8
commit
90597e0aa5
@@ -7,9 +7,9 @@ Before you start, make sure you have a Better Auth instance configured. If you h
|
||||
|
||||
### Mount the handler
|
||||
|
||||
We need to mount the handler to SolidStart server. Put the following code in your `*auth.ts` file inside `/routes/api/auth` folder.
|
||||
We need to mount the handler to SolidStart server. Put the following code in your `[...auth].ts` file inside `/routes/api/auth` folder.
|
||||
|
||||
```ts title="*auth.ts"
|
||||
```ts title="[...auth].ts"
|
||||
import { auth } from "~/lib/auth";
|
||||
import { toSolidStartHandler } from "better-auth/solid-start";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user