We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d148bc commit a5f28d9Copy full SHA for a5f28d9
docs/integrations/better-auth.md
@@ -68,11 +68,14 @@ import { passkey } from 'better-auth/plugins/passkey'
68
import { Pool } from 'pg'
69
70
export const auth = betterAuth({
71
- basePath: '/' // [!code ++]
+ basePath: '/api' // [!code ++]
72
})
73
```
74
75
-Then we can access Better Auth with `http://localhost:3000/auth`.
+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
79
80
## Swagger / OpenAPI
81
0 commit comments