Skip to content

Commit a5f28d9

Browse files
authored
Revert "Update better-auth.md"
1 parent 8d148bc commit a5f28d9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/integrations/better-auth.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ import { passkey } from 'better-auth/plugins/passkey'
6868
import { Pool } from 'pg'
6969

7070
export const auth = betterAuth({
71-
basePath: '/' // [!code ++]
71+
basePath: '/api' // [!code ++]
7272
})
7373
```
7474

75-
Then we can access Better Auth with `http://localhost:3000/auth`.
75+
Then we can access Better Auth with `http://localhost:3000/auth/api`.
76+
77+
Unfortunately, we can't set `basePath` of a Better Auth instance to be empty or `/`.
78+
7679

7780
## Swagger / OpenAPI
7881

0 commit comments

Comments
 (0)