Skip to content

Commit eed06c4

Browse files
committed
fix: better-auth patch
1 parent 14a3d1c commit eed06c4

File tree

6 files changed

+213
-255
lines changed

6 files changed

+213
-255
lines changed

apps/mobile/ios/1up.xcodeproj/project.pbxproj

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
10796A6262AB4A04235B4E49 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 89CA20B335F81BD78DE6E323 /* PrivacyInfo.xcprivacy */; };
1110
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1211
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
13-
5EA218BD2A5E4563A88A03AD /* Monocraft.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5D9BBFAD50094E2ABCD6934E /* Monocraft.ttf */; };
14-
74FFC98F1F2F29F8643C293F /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9954CDDC5A1543868A657B6 /* ExpoModulesProvider.swift */; };
12+
6F28D37085E0DA3F31A45DC7 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F39C14546BBD22E1AF4A25C /* ExpoModulesProvider.swift */; };
1513
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
14+
CCD3615F4A2E4EF3A536A2D0 /* Monocraft.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 33B2679181AF4295AE106DF3 /* Monocraft.ttf */; };
1615
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
17-
FBA6F5C130257D06DD6D1DC9 /* libPods-1up.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EBF021D9067D77CC7640EEA /* libPods-1up.a */; };
16+
FAF3DAED5F07EFFA22570F41 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = DA09B64FAE2E64A7C494A1E1 /* PrivacyInfo.xcprivacy */; };
17+
FF0AA31B60B7B399AE1F20CB /* libPods-1up.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D3C090AD98774C00C78650D /* libPods-1up.a */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXFileReference section */
2121
13B07F961A680F5B00A75B9A /* 1up.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = 1up.app; sourceTree = BUILT_PRODUCTS_DIR; };
2222
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = 1up/Images.xcassets; sourceTree = "<group>"; };
2323
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = 1up/Info.plist; sourceTree = "<group>"; };
24-
5D9BBFAD50094E2ABCD6934E /* Monocraft.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Monocraft.ttf; path = ../assets/fonts/Monocraft.ttf; sourceTree = "<group>"; };
25-
89CA20B335F81BD78DE6E323 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = 1up/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
26-
90876C006E43AB0536B48137 /* Pods-1up.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-1up.release.xcconfig"; path = "Target Support Files/Pods-1up/Pods-1up.release.xcconfig"; sourceTree = "<group>"; };
27-
9EBF021D9067D77CC7640EEA /* libPods-1up.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-1up.a"; sourceTree = BUILT_PRODUCTS_DIR; };
24+
1EB791DB1F7DF4B81044FB1B /* Pods-1up.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-1up.debug.xcconfig"; path = "Target Support Files/Pods-1up/Pods-1up.debug.xcconfig"; sourceTree = "<group>"; };
25+
2D299CA7EC6C4E6CC22C056A /* Pods-1up.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-1up.release.xcconfig"; path = "Target Support Files/Pods-1up/Pods-1up.release.xcconfig"; sourceTree = "<group>"; };
26+
33B2679181AF4295AE106DF3 /* Monocraft.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Monocraft.ttf; path = ../assets/fonts/Monocraft.ttf; sourceTree = "<group>"; };
27+
5F39C14546BBD22E1AF4A25C /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-1up/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
28+
8D3C090AD98774C00C78650D /* libPods-1up.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-1up.a"; sourceTree = BUILT_PRODUCTS_DIR; };
2829
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = 1up/SplashScreen.storyboard; sourceTree = "<group>"; };
29-
B9954CDDC5A1543868A657B6 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-1up/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
3030
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
31-
DE55C883B381E0F91F524716 /* Pods-1up.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-1up.debug.xcconfig"; path = "Target Support Files/Pods-1up/Pods-1up.debug.xcconfig"; sourceTree = "<group>"; };
31+
DA09B64FAE2E64A7C494A1E1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = 1up/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3232
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3333
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = 1up/AppDelegate.swift; sourceTree = "<group>"; };
3434
F11748442D0722820044C1D9 /* 1up-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "1up-Bridging-Header.h"; path = "1up/1up-Bridging-Header.h"; sourceTree = "<group>"; };
@@ -39,7 +39,7 @@
3939
isa = PBXFrameworksBuildPhase;
4040
buildActionMask = 2147483647;
4141
files = (
42-
FBA6F5C130257D06DD6D1DC9 /* libPods-1up.a in Frameworks */,
42+
FF0AA31B60B7B399AE1F20CB /* libPods-1up.a in Frameworks */,
4343
);
4444
runOnlyForDeploymentPostprocessing = 0;
4545
};
@@ -55,26 +55,26 @@
5555
13B07FB51A68108700A75B9A /* Images.xcassets */,
5656
13B07FB61A68108700A75B9A /* Info.plist */,
5757
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
58-
89CA20B335F81BD78DE6E323 /* PrivacyInfo.xcprivacy */,
58+
DA09B64FAE2E64A7C494A1E1 /* PrivacyInfo.xcprivacy */,
5959
);
6060
name = 1up;
6161
sourceTree = "<group>";
6262
};
63-
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
63+
167ADD87E7965A311637F534 /* ExpoModulesProviders */ = {
6464
isa = PBXGroup;
6565
children = (
66-
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
67-
9EBF021D9067D77CC7640EEA /* libPods-1up.a */,
66+
CEB97584772F22625AB02060 /* 1up */,
6867
);
69-
name = Frameworks;
68+
name = ExpoModulesProviders;
7069
sourceTree = "<group>";
7170
};
72-
45C76AEF902ED654B66AF488 /* ExpoModulesProviders */ = {
71+
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
7372
isa = PBXGroup;
7473
children = (
75-
F483D0E4EFC6207513733C8E /* 1up */,
74+
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
75+
8D3C090AD98774C00C78650D /* libPods-1up.a */,
7676
);
77-
name = ExpoModulesProviders;
77+
name = Frameworks;
7878
sourceTree = "<group>";
7979
};
8080
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
@@ -91,9 +91,9 @@
9191
832341AE1AAA6A7D00B99B32 /* Libraries */,
9292
83CBBA001A601CBA00E9B192 /* Products */,
9393
2D16E6871FA4F8E400B85C8A /* Frameworks */,
94-
B2C83574A5764F248B8AB981 /* Resources */,
95-
FBD7779FDF9B8B058FA6694C /* Pods */,
96-
45C76AEF902ED654B66AF488 /* ExpoModulesProviders */,
94+
F6E265A752F74370B25F2BFB /* Resources */,
95+
F0335C70F718D895E5088D45 /* Pods */,
96+
167ADD87E7965A311637F534 /* ExpoModulesProviders */,
9797
);
9898
indentWidth = 2;
9999
sourceTree = "<group>";
@@ -108,15 +108,6 @@
108108
name = Products;
109109
sourceTree = "<group>";
110110
};
111-
B2C83574A5764F248B8AB981 /* Resources */ = {
112-
isa = PBXGroup;
113-
children = (
114-
5D9BBFAD50094E2ABCD6934E /* Monocraft.ttf */,
115-
);
116-
name = Resources;
117-
path = "";
118-
sourceTree = "<group>";
119-
};
120111
BB2F792B24A3F905000567C9 /* Supporting */ = {
121112
isa = PBXGroup;
122113
children = (
@@ -126,24 +117,33 @@
126117
path = 1up/Supporting;
127118
sourceTree = "<group>";
128119
};
129-
F483D0E4EFC6207513733C8E /* 1up */ = {
120+
CEB97584772F22625AB02060 /* 1up */ = {
130121
isa = PBXGroup;
131122
children = (
132-
B9954CDDC5A1543868A657B6 /* ExpoModulesProvider.swift */,
123+
5F39C14546BBD22E1AF4A25C /* ExpoModulesProvider.swift */,
133124
);
134125
name = 1up;
135126
sourceTree = "<group>";
136127
};
137-
FBD7779FDF9B8B058FA6694C /* Pods */ = {
128+
F0335C70F718D895E5088D45 /* Pods */ = {
138129
isa = PBXGroup;
139130
children = (
140-
DE55C883B381E0F91F524716 /* Pods-1up.debug.xcconfig */,
141-
90876C006E43AB0536B48137 /* Pods-1up.release.xcconfig */,
131+
1EB791DB1F7DF4B81044FB1B /* Pods-1up.debug.xcconfig */,
132+
2D299CA7EC6C4E6CC22C056A /* Pods-1up.release.xcconfig */,
142133
);
143134
name = Pods;
144135
path = Pods;
145136
sourceTree = "<group>";
146137
};
138+
F6E265A752F74370B25F2BFB /* Resources */ = {
139+
isa = PBXGroup;
140+
children = (
141+
33B2679181AF4295AE106DF3 /* Monocraft.ttf */,
142+
);
143+
name = Resources;
144+
path = "";
145+
sourceTree = "<group>";
146+
};
147147
/* End PBXGroup section */
148148

149149
/* Begin PBXNativeTarget section */
@@ -152,13 +152,13 @@
152152
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "1up" */;
153153
buildPhases = (
154154
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
155-
479FD3292EA8B89F50D245CF /* [Expo] Configure project */,
155+
9C159AD8E5D3D7048B64A354 /* [Expo] Configure project */,
156156
13B07F871A680F5B00A75B9A /* Sources */,
157157
13B07F8C1A680F5B00A75B9A /* Frameworks */,
158158
13B07F8E1A680F5B00A75B9A /* Resources */,
159159
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
160160
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
161-
269297CC4BF7F2E0BB168170 /* [CP] Embed Pods Frameworks */,
161+
77F4DAFEF533DC793D458A6D /* [CP] Embed Pods Frameworks */,
162162
);
163163
buildRules = (
164164
);
@@ -178,8 +178,8 @@
178178
LastUpgradeCheck = 1130;
179179
TargetAttributes = {
180180
13B07F861A680F5B00A75B9A = {
181-
DevelopmentTeam = VN63GRJ95J;
182181
LastSwiftMigration = 1250;
182+
DevelopmentTeam = "VN63GRJ95J";
183183
ProvisioningStyle = Automatic;
184184
};
185185
};
@@ -210,8 +210,8 @@
210210
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
211211
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
212212
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
213-
5EA218BD2A5E4563A88A03AD /* Monocraft.ttf in Resources */,
214-
10796A6262AB4A04235B4E49 /* PrivacyInfo.xcprivacy in Resources */,
213+
CCD3615F4A2E4EF3A536A2D0 /* Monocraft.ttf in Resources */,
214+
FAF3DAED5F07EFFA22570F41 /* PrivacyInfo.xcprivacy in Resources */,
215215
);
216216
runOnlyForDeploymentPostprocessing = 0;
217217
};
@@ -255,7 +255,7 @@
255255
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
256256
showEnvVarsInLog = 0;
257257
};
258-
269297CC4BF7F2E0BB168170 /* [CP] Embed Pods Frameworks */ = {
258+
77F4DAFEF533DC793D458A6D /* [CP] Embed Pods Frameworks */ = {
259259
isa = PBXShellScriptBuildPhase;
260260
buildActionMask = 2147483647;
261261
files = (
@@ -273,25 +273,6 @@
273273
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-1up/Pods-1up-frameworks.sh\"\n";
274274
showEnvVarsInLog = 0;
275275
};
276-
479FD3292EA8B89F50D245CF /* [Expo] Configure project */ = {
277-
isa = PBXShellScriptBuildPhase;
278-
alwaysOutOfDate = 1;
279-
buildActionMask = 2147483647;
280-
files = (
281-
);
282-
inputFileListPaths = (
283-
);
284-
inputPaths = (
285-
);
286-
name = "[Expo] Configure project";
287-
outputFileListPaths = (
288-
);
289-
outputPaths = (
290-
);
291-
runOnlyForDeploymentPostprocessing = 0;
292-
shellPath = /bin/sh;
293-
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-1up/expo-configure-project.sh\"\n";
294-
};
295276
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
296277
isa = PBXShellScriptBuildPhase;
297278
buildActionMask = 2147483647;
@@ -332,6 +313,25 @@
332313
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-1up/Pods-1up-resources.sh\"\n";
333314
showEnvVarsInLog = 0;
334315
};
316+
9C159AD8E5D3D7048B64A354 /* [Expo] Configure project */ = {
317+
isa = PBXShellScriptBuildPhase;
318+
alwaysOutOfDate = 1;
319+
buildActionMask = 2147483647;
320+
files = (
321+
);
322+
inputFileListPaths = (
323+
);
324+
inputPaths = (
325+
);
326+
name = "[Expo] Configure project";
327+
outputFileListPaths = (
328+
);
329+
outputPaths = (
330+
);
331+
runOnlyForDeploymentPostprocessing = 0;
332+
shellPath = /bin/sh;
333+
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-1up/expo-configure-project.sh\"\n";
334+
};
335335
/* End PBXShellScriptBuildPhase section */
336336

337337
/* Begin PBXSourcesBuildPhase section */
@@ -340,7 +340,7 @@
340340
buildActionMask = 2147483647;
341341
files = (
342342
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */,
343-
74FFC98F1F2F29F8643C293F /* ExpoModulesProvider.swift in Sources */,
343+
6F28D37085E0DA3F31A45DC7 /* ExpoModulesProvider.swift in Sources */,
344344
);
345345
runOnlyForDeploymentPostprocessing = 0;
346346
};
@@ -349,15 +349,12 @@
349349
/* Begin XCBuildConfiguration section */
350350
13B07F941A680F5B00A75B9A /* Debug */ = {
351351
isa = XCBuildConfiguration;
352-
baseConfigurationReference = DE55C883B381E0F91F524716 /* Pods-1up.debug.xcconfig */;
352+
baseConfigurationReference = 1EB791DB1F7DF4B81044FB1B /* Pods-1up.debug.xcconfig */;
353353
buildSettings = {
354354
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
355355
CLANG_ENABLE_MODULES = YES;
356356
CODE_SIGN_ENTITLEMENTS = 1up/1up.entitlements;
357-
CODE_SIGN_IDENTITY = "Apple Development";
358-
CODE_SIGN_STYLE = Automatic;
359357
CURRENT_PROJECT_VERSION = 1;
360-
DEVELOPMENT_TEAM = VN63GRJ95J;
361358
ENABLE_BITCODE = NO;
362359
GCC_PREPROCESSOR_DEFINITIONS = (
363360
"$(inherited)",
@@ -383,20 +380,20 @@
383380
SWIFT_VERSION = 5.0;
384381
TARGETED_DEVICE_FAMILY = "1,2";
385382
VERSIONING_SYSTEM = "apple-generic";
383+
DEVELOPMENT_TEAM = "VN63GRJ95J";
384+
CODE_SIGN_IDENTITY = "Apple Development";
385+
CODE_SIGN_STYLE = Automatic;
386386
};
387387
name = Debug;
388388
};
389389
13B07F951A680F5B00A75B9A /* Release */ = {
390390
isa = XCBuildConfiguration;
391-
baseConfigurationReference = 90876C006E43AB0536B48137 /* Pods-1up.release.xcconfig */;
391+
baseConfigurationReference = 2D299CA7EC6C4E6CC22C056A /* Pods-1up.release.xcconfig */;
392392
buildSettings = {
393393
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
394394
CLANG_ENABLE_MODULES = YES;
395395
CODE_SIGN_ENTITLEMENTS = 1up/1up.entitlements;
396-
CODE_SIGN_IDENTITY = "Apple Development";
397-
CODE_SIGN_STYLE = Automatic;
398396
CURRENT_PROJECT_VERSION = 1;
399-
DEVELOPMENT_TEAM = VN63GRJ95J;
400397
INFOPLIST_FILE = 1up/Info.plist;
401398
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
402399
LD_RUNPATH_SEARCH_PATHS = (
@@ -416,6 +413,9 @@
416413
SWIFT_VERSION = 5.0;
417414
TARGETED_DEVICE_FAMILY = "1,2";
418415
VERSIONING_SYSTEM = "apple-generic";
416+
DEVELOPMENT_TEAM = "VN63GRJ95J";
417+
CODE_SIGN_IDENTITY = "Apple Development";
418+
CODE_SIGN_STYLE = Automatic;
419419
};
420420
name = Release;
421421
};

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,21 @@
2323
"lint": "turbo run lint --continue -- --cache --cache-location .cache/.eslintcache",
2424
"lint:fix": "turbo run lint --continue -- --fix --cache --cache-location .cache/.eslintcache",
2525
"lint:ws": "pnpm dlx sherif@latest",
26-
"postinstall": "pnpm lint:ws && patch-package",
26+
"postinstall": "pnpm lint:ws",
2727
"typecheck": "turbo run typecheck",
2828
"ui-add": "turbo run ui-add"
2929
},
3030
"devDependencies": {
3131
"@1up/prettier-config": "workspace:*",
3232
"@turbo/gen": "^2.3.4",
33-
"patch-package": "^8.0.0",
3433
"prettier": "catalog:",
3534
"turbo": "^2.3.4",
3635
"typescript": "catalog:"
3736
},
38-
"prettier": "@1up/prettier-config"
37+
"prettier": "@1up/prettier-config",
38+
"pnpm": {
39+
"patchedDependencies": {
40+
"better-auth": "patches/better-auth.patch"
41+
}
42+
}
3943
}

patches/better-auth+1.2.3.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.

patches/better-auth.patch

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff --git a/dist/adapters/drizzle-adapter/index.cjs b/dist/adapters/drizzle-adapter/index.cjs
2+
index 0a020de01469f6fd50b5c1f3b2d6fffe2c266c2c..d64203c49f25b67cd564ffb9b92c1267e0ccd44a 100644
3+
--- a/dist/adapters/drizzle-adapter/index.cjs
4+
+++ b/dist/adapters/drizzle-adapter/index.cjs
5+
@@ -173,8 +173,30 @@ const createTransform = (db, config, options) => {
6+
return res[0];
7+
} else if (builderVal) {
8+
- const tId = builderVal[0]?.id.value;
9+
- const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.id, tId));
10+
- return res[0];
11+
+ const tId = builderVal[0]?.id?.value;
12+
+ // const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.id, tId));
13+
+ // return res[0];
14+
+ if (tId) {
15+
+ const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.id, tId));
16+
+ return res[0];
17+
+ }
18+
+ const email = builderVal[0]?.email?.value;
19+
+ if (email) {
20+
+ const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.email, email));
21+
+ return res[0];
22+
+ }
23+
+ const identifier = builderVal[0]?.identifier?.value;
24+
+ if (identifier) {
25+
+ const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.identifier, identifier));
26+
+ return res[0];
27+
+ }
28+
+ const token = builderVal[0]?.token?.value;
29+
+ if (token) {
30+
+ const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.token, token));
31+
+ return res[0];
32+
+ }
33+
+ console.error("🚨 couldnt find the id column for the BetterAuth model", { builderVal: builderVal[0] });
34+
+ return null;
35+
+
36+
} else if (data.id) {
37+
const res = await db.select().from(schemaModel).where(drizzleOrm.eq(schemaModel.id, data.id));
38+
return res[0];

0 commit comments

Comments
 (0)