Skip to content

Commit cd85a8e

Browse files
committed
fix: add basePath to AuthManager configuration for better-auth
1 parent e227e3a commit cd85a8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/plugins/plugin-auth/src/auth-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export class AuthManager {
6868
// Base configuration
6969
secret: this.config.secret || this.generateSecret(),
7070
baseURL: this.config.baseUrl || 'http://localhost:3000',
71+
basePath: '/', // ← 关键修复!告诉 better-auth 路径已被剥离
7172

7273
// Database adapter configuration
7374
// For now, we configure a basic setup that will be enhanced

0 commit comments

Comments
 (0)