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.
2 parents 3342c7a + 56b7f9b commit 99a6c85Copy full SHA for 99a6c85
docs/integrations/better-auth.md
@@ -68,14 +68,11 @@ import { passkey } from 'better-auth/plugins/passkey'
68
import { Pool } from 'pg'
69
70
export const auth = betterAuth({
71
- basePath: '/api' // [!code ++]
+ basePath: '/' // [!code ++]
72
})
73
```
74
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
+Then we can access Better Auth with `http://localhost:3000/auth`.
79
80
## Swagger / OpenAPI
81
0 commit comments