mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): update better auth
This commit is contained in:
@@ -39,8 +39,8 @@ export function getDefaultConfig() {
|
|||||||
export const DEFAULT_CONFIG = getDefaultConfig();
|
export const DEFAULT_CONFIG = getDefaultConfig();
|
||||||
|
|
||||||
export const dependencyVersionMap = {
|
export const dependencyVersionMap = {
|
||||||
"better-auth": "^1.3.7",
|
"better-auth": "^1.3.9",
|
||||||
"@better-auth/expo": "^1.3.7",
|
"@better-auth/expo": "^1.3.9",
|
||||||
|
|
||||||
"@clerk/nextjs": "^6.31.5",
|
"@clerk/nextjs": "^6.31.5",
|
||||||
"@clerk/clerk-react": "^5.45.0",
|
"@clerk/clerk-react": "^5.45.0",
|
||||||
|
|||||||
@@ -91,7 +91,12 @@ export const auth = betterAuth({
|
|||||||
{{#if (eq database "mysql")}}provider: "mysql",{{/if}}
|
{{#if (eq database "mysql")}}provider: "mysql",{{/if}}
|
||||||
schema: schema,
|
schema: schema,
|
||||||
}),
|
}),
|
||||||
trustedOrigins: [env.CORS_ORIGIN],
|
trustedOrigins: [
|
||||||
|
env.CORS_ORIGIN,
|
||||||
|
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
|
||||||
|
"mybettertapp://", "exp://"
|
||||||
|
{{/if}}
|
||||||
|
],
|
||||||
emailAndPassword: {
|
emailAndPassword: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user