mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): upgrade to expo 54 (#574)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user