fix: add secret and baseURL to Better Auth config
This commit is contained in:
parent
992a7fe72b
commit
17ef200f6a
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ export const auth = betterAuth({
|
||||||
expiresIn: 60 * 60 * 24 * 7, // 7 days
|
expiresIn: 60 * 60 * 24 * 7, // 7 days
|
||||||
updateAge: 60 * 60 * 24,
|
updateAge: 60 * 60 * 24,
|
||||||
},
|
},
|
||||||
|
secret: process.env.BETTER_AUTH_SECRET || 'fallback-secret-for-development',
|
||||||
|
baseURL: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue