feat(cli): update better auth

This commit is contained in:
Aman Varshney
2025-09-12 18:49:33 +05:30
parent e87b177f85
commit c54d376f9c
2 changed files with 8 additions and 3 deletions

View File

@@ -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",

View File

@@ -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,
}, },