feat(cli): upgrade to expo 54 (#574)

This commit is contained in:
Aman Varshney
2025-09-12 00:11:41 +05:30
committed by GitHub
parent 0bfb3cfda0
commit 09482029c5
68 changed files with 491 additions and 579 deletions

View File

@@ -1,12 +1,13 @@
import { createAuthClient } from "better-auth/react";
import { expoClient } from "@better-auth/expo/client";
import { createAuthClient } from "better-auth/react";
import * as SecureStore from "expo-secure-store";
export const authClient = createAuthClient({
baseURL: process.env.EXPO_PUBLIC_SERVER_URL,
plugins: [
expoClient({
storagePrefix: "my-better-t-app",
scheme: "mybettertapp",
storagePrefix: "{{projectName}}",
storage: SecureStore,
}),
],

View File

@@ -16,7 +16,7 @@ export const auth = betterAuth({
trustedOrigins: [
process.env.CORS_ORIGIN || "",
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
"my-better-t-app://",
"mybettertapp://", "exp://"
{{/if}}
],
emailAndPassword: {
@@ -55,7 +55,7 @@ export const auth = betterAuth({
trustedOrigins: [
process.env.CORS_ORIGIN || "",
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
"my-better-t-app://",
"mybettertapp://", "exp://"
{{/if}}
],
emailAndPassword: {
@@ -124,7 +124,7 @@ export const auth = betterAuth({
trustedOrigins: [
process.env.CORS_ORIGIN || "",
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
"my-better-t-app://",
"mybettertapp://", "exp://"
{{/if}}
],
emailAndPassword: {
@@ -154,7 +154,7 @@ export const auth = betterAuth({
trustedOrigins: [
process.env.CORS_ORIGIN || "",
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
"my-better-t-app://",
"mybettertapp://", "exp://"
{{/if}}
],
emailAndPassword: {
@@ -171,4 +171,4 @@ export const auth = betterAuth({
, plugins: [expo()]
{{/if}}
});
{{/if}}
{{/if}}