@polar-sh/better-auth 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +56 -56
- package/dist/index.d.ts +56 -56
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -160,19 +160,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
160
160
|
session: {
|
|
161
161
|
session: Record<string, any> & {
|
|
162
162
|
id: string;
|
|
163
|
-
|
|
164
|
-
updatedAt: Date;
|
|
163
|
+
token: string;
|
|
165
164
|
userId: string;
|
|
166
165
|
expiresAt: Date;
|
|
167
|
-
|
|
166
|
+
createdAt: Date;
|
|
167
|
+
updatedAt: Date;
|
|
168
168
|
ipAddress?: string | null | undefined;
|
|
169
169
|
userAgent?: string | null | undefined;
|
|
170
170
|
};
|
|
171
171
|
user: Record<string, any> & {
|
|
172
172
|
id: string;
|
|
173
173
|
name: string;
|
|
174
|
-
email: string;
|
|
175
174
|
emailVerified: boolean;
|
|
175
|
+
email: string;
|
|
176
176
|
createdAt: Date;
|
|
177
177
|
updatedAt: Date;
|
|
178
178
|
image?: string | null | undefined;
|
|
@@ -215,19 +215,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
215
215
|
session: {
|
|
216
216
|
session: Record<string, any> & {
|
|
217
217
|
id: string;
|
|
218
|
-
|
|
219
|
-
updatedAt: Date;
|
|
218
|
+
token: string;
|
|
220
219
|
userId: string;
|
|
221
220
|
expiresAt: Date;
|
|
222
|
-
|
|
221
|
+
createdAt: Date;
|
|
222
|
+
updatedAt: Date;
|
|
223
223
|
ipAddress?: string | null | undefined;
|
|
224
224
|
userAgent?: string | null | undefined;
|
|
225
225
|
};
|
|
226
226
|
user: Record<string, any> & {
|
|
227
227
|
id: string;
|
|
228
228
|
name: string;
|
|
229
|
-
email: string;
|
|
230
229
|
emailVerified: boolean;
|
|
230
|
+
email: string;
|
|
231
231
|
createdAt: Date;
|
|
232
232
|
updatedAt: Date;
|
|
233
233
|
image?: string | null | undefined;
|
|
@@ -287,19 +287,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
287
287
|
session: {
|
|
288
288
|
session: Record<string, any> & {
|
|
289
289
|
id: string;
|
|
290
|
-
|
|
291
|
-
updatedAt: Date;
|
|
290
|
+
token: string;
|
|
292
291
|
userId: string;
|
|
293
292
|
expiresAt: Date;
|
|
294
|
-
|
|
293
|
+
createdAt: Date;
|
|
294
|
+
updatedAt: Date;
|
|
295
295
|
ipAddress?: string | null | undefined;
|
|
296
296
|
userAgent?: string | null | undefined;
|
|
297
297
|
};
|
|
298
298
|
user: Record<string, any> & {
|
|
299
299
|
id: string;
|
|
300
300
|
name: string;
|
|
301
|
-
email: string;
|
|
302
301
|
emailVerified: boolean;
|
|
302
|
+
email: string;
|
|
303
303
|
createdAt: Date;
|
|
304
304
|
updatedAt: Date;
|
|
305
305
|
image?: string | null | undefined;
|
|
@@ -371,19 +371,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
371
371
|
session: {
|
|
372
372
|
session: Record<string, any> & {
|
|
373
373
|
id: string;
|
|
374
|
-
|
|
375
|
-
updatedAt: Date;
|
|
374
|
+
token: string;
|
|
376
375
|
userId: string;
|
|
377
376
|
expiresAt: Date;
|
|
378
|
-
|
|
377
|
+
createdAt: Date;
|
|
378
|
+
updatedAt: Date;
|
|
379
379
|
ipAddress?: string | null | undefined;
|
|
380
380
|
userAgent?: string | null | undefined;
|
|
381
381
|
};
|
|
382
382
|
user: Record<string, any> & {
|
|
383
383
|
id: string;
|
|
384
384
|
name: string;
|
|
385
|
-
email: string;
|
|
386
385
|
emailVerified: boolean;
|
|
386
|
+
email: string;
|
|
387
387
|
createdAt: Date;
|
|
388
388
|
updatedAt: Date;
|
|
389
389
|
image?: string | null | undefined;
|
|
@@ -447,19 +447,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
447
447
|
session: {
|
|
448
448
|
session: Record<string, any> & {
|
|
449
449
|
id: string;
|
|
450
|
-
|
|
451
|
-
updatedAt: Date;
|
|
450
|
+
token: string;
|
|
452
451
|
userId: string;
|
|
453
452
|
expiresAt: Date;
|
|
454
|
-
|
|
453
|
+
createdAt: Date;
|
|
454
|
+
updatedAt: Date;
|
|
455
455
|
ipAddress?: string | null | undefined;
|
|
456
456
|
userAgent?: string | null | undefined;
|
|
457
457
|
};
|
|
458
458
|
user: Record<string, any> & {
|
|
459
459
|
id: string;
|
|
460
460
|
name: string;
|
|
461
|
-
email: string;
|
|
462
461
|
emailVerified: boolean;
|
|
462
|
+
email: string;
|
|
463
463
|
createdAt: Date;
|
|
464
464
|
updatedAt: Date;
|
|
465
465
|
image?: string | null | undefined;
|
|
@@ -518,19 +518,19 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
518
518
|
session: {
|
|
519
519
|
session: Record<string, any> & {
|
|
520
520
|
id: string;
|
|
521
|
-
|
|
522
|
-
updatedAt: Date;
|
|
521
|
+
token: string;
|
|
523
522
|
userId: string;
|
|
524
523
|
expiresAt: Date;
|
|
525
|
-
|
|
524
|
+
createdAt: Date;
|
|
525
|
+
updatedAt: Date;
|
|
526
526
|
ipAddress?: string | null | undefined;
|
|
527
527
|
userAgent?: string | null | undefined;
|
|
528
528
|
};
|
|
529
529
|
user: Record<string, any> & {
|
|
530
530
|
id: string;
|
|
531
531
|
name: string;
|
|
532
|
-
email: string;
|
|
533
532
|
emailVerified: boolean;
|
|
533
|
+
email: string;
|
|
534
534
|
createdAt: Date;
|
|
535
535
|
updatedAt: Date;
|
|
536
536
|
image?: string | null | undefined;
|
|
@@ -596,19 +596,19 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
596
596
|
session: {
|
|
597
597
|
session: Record<string, any> & {
|
|
598
598
|
id: string;
|
|
599
|
-
|
|
600
|
-
updatedAt: Date;
|
|
599
|
+
token: string;
|
|
601
600
|
userId: string;
|
|
602
601
|
expiresAt: Date;
|
|
603
|
-
|
|
602
|
+
createdAt: Date;
|
|
603
|
+
updatedAt: Date;
|
|
604
604
|
ipAddress?: string | null | undefined;
|
|
605
605
|
userAgent?: string | null | undefined;
|
|
606
606
|
};
|
|
607
607
|
user: Record<string, any> & {
|
|
608
608
|
id: string;
|
|
609
609
|
name: string;
|
|
610
|
-
email: string;
|
|
611
610
|
emailVerified: boolean;
|
|
611
|
+
email: string;
|
|
612
612
|
createdAt: Date;
|
|
613
613
|
updatedAt: Date;
|
|
614
614
|
image?: string | null | undefined;
|
|
@@ -923,19 +923,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
923
923
|
session: {
|
|
924
924
|
session: Record<string, any> & {
|
|
925
925
|
id: string;
|
|
926
|
-
|
|
927
|
-
updatedAt: Date;
|
|
926
|
+
token: string;
|
|
928
927
|
userId: string;
|
|
929
928
|
expiresAt: Date;
|
|
930
|
-
|
|
929
|
+
createdAt: Date;
|
|
930
|
+
updatedAt: Date;
|
|
931
931
|
ipAddress?: string | null | undefined;
|
|
932
932
|
userAgent?: string | null | undefined;
|
|
933
933
|
};
|
|
934
934
|
user: Record<string, any> & {
|
|
935
935
|
id: string;
|
|
936
936
|
name: string;
|
|
937
|
-
email: string;
|
|
938
937
|
emailVerified: boolean;
|
|
938
|
+
email: string;
|
|
939
939
|
createdAt: Date;
|
|
940
940
|
updatedAt: Date;
|
|
941
941
|
image?: string | null | undefined;
|
|
@@ -1001,19 +1001,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1001
1001
|
session: {
|
|
1002
1002
|
session: Record<string, any> & {
|
|
1003
1003
|
id: string;
|
|
1004
|
-
|
|
1005
|
-
updatedAt: Date;
|
|
1004
|
+
token: string;
|
|
1006
1005
|
userId: string;
|
|
1007
1006
|
expiresAt: Date;
|
|
1008
|
-
|
|
1007
|
+
createdAt: Date;
|
|
1008
|
+
updatedAt: Date;
|
|
1009
1009
|
ipAddress?: string | null | undefined;
|
|
1010
1010
|
userAgent?: string | null | undefined;
|
|
1011
1011
|
};
|
|
1012
1012
|
user: Record<string, any> & {
|
|
1013
1013
|
id: string;
|
|
1014
1014
|
name: string;
|
|
1015
|
-
email: string;
|
|
1016
1015
|
emailVerified: boolean;
|
|
1016
|
+
email: string;
|
|
1017
1017
|
createdAt: Date;
|
|
1018
1018
|
updatedAt: Date;
|
|
1019
1019
|
image?: string | null | undefined;
|
|
@@ -1063,19 +1063,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1063
1063
|
session: {
|
|
1064
1064
|
session: Record<string, any> & {
|
|
1065
1065
|
id: string;
|
|
1066
|
-
|
|
1067
|
-
updatedAt: Date;
|
|
1066
|
+
token: string;
|
|
1068
1067
|
userId: string;
|
|
1069
1068
|
expiresAt: Date;
|
|
1070
|
-
|
|
1069
|
+
createdAt: Date;
|
|
1070
|
+
updatedAt: Date;
|
|
1071
1071
|
ipAddress?: string | null | undefined;
|
|
1072
1072
|
userAgent?: string | null | undefined;
|
|
1073
1073
|
};
|
|
1074
1074
|
user: Record<string, any> & {
|
|
1075
1075
|
id: string;
|
|
1076
1076
|
name: string;
|
|
1077
|
-
email: string;
|
|
1078
1077
|
emailVerified: boolean;
|
|
1078
|
+
email: string;
|
|
1079
1079
|
createdAt: Date;
|
|
1080
1080
|
updatedAt: Date;
|
|
1081
1081
|
image?: string | null | undefined;
|
|
@@ -1118,19 +1118,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1118
1118
|
session: {
|
|
1119
1119
|
session: Record<string, any> & {
|
|
1120
1120
|
id: string;
|
|
1121
|
-
|
|
1122
|
-
updatedAt: Date;
|
|
1121
|
+
token: string;
|
|
1123
1122
|
userId: string;
|
|
1124
1123
|
expiresAt: Date;
|
|
1125
|
-
|
|
1124
|
+
createdAt: Date;
|
|
1125
|
+
updatedAt: Date;
|
|
1126
1126
|
ipAddress?: string | null | undefined;
|
|
1127
1127
|
userAgent?: string | null | undefined;
|
|
1128
1128
|
};
|
|
1129
1129
|
user: Record<string, any> & {
|
|
1130
1130
|
id: string;
|
|
1131
1131
|
name: string;
|
|
1132
|
-
email: string;
|
|
1133
1132
|
emailVerified: boolean;
|
|
1133
|
+
email: string;
|
|
1134
1134
|
createdAt: Date;
|
|
1135
1135
|
updatedAt: Date;
|
|
1136
1136
|
image?: string | null | undefined;
|
|
@@ -1190,19 +1190,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1190
1190
|
session: {
|
|
1191
1191
|
session: Record<string, any> & {
|
|
1192
1192
|
id: string;
|
|
1193
|
-
|
|
1194
|
-
updatedAt: Date;
|
|
1193
|
+
token: string;
|
|
1195
1194
|
userId: string;
|
|
1196
1195
|
expiresAt: Date;
|
|
1197
|
-
|
|
1196
|
+
createdAt: Date;
|
|
1197
|
+
updatedAt: Date;
|
|
1198
1198
|
ipAddress?: string | null | undefined;
|
|
1199
1199
|
userAgent?: string | null | undefined;
|
|
1200
1200
|
};
|
|
1201
1201
|
user: Record<string, any> & {
|
|
1202
1202
|
id: string;
|
|
1203
1203
|
name: string;
|
|
1204
|
-
email: string;
|
|
1205
1204
|
emailVerified: boolean;
|
|
1205
|
+
email: string;
|
|
1206
1206
|
createdAt: Date;
|
|
1207
1207
|
updatedAt: Date;
|
|
1208
1208
|
image?: string | null | undefined;
|
|
@@ -1274,19 +1274,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1274
1274
|
session: {
|
|
1275
1275
|
session: Record<string, any> & {
|
|
1276
1276
|
id: string;
|
|
1277
|
-
|
|
1278
|
-
updatedAt: Date;
|
|
1277
|
+
token: string;
|
|
1279
1278
|
userId: string;
|
|
1280
1279
|
expiresAt: Date;
|
|
1281
|
-
|
|
1280
|
+
createdAt: Date;
|
|
1281
|
+
updatedAt: Date;
|
|
1282
1282
|
ipAddress?: string | null | undefined;
|
|
1283
1283
|
userAgent?: string | null | undefined;
|
|
1284
1284
|
};
|
|
1285
1285
|
user: Record<string, any> & {
|
|
1286
1286
|
id: string;
|
|
1287
1287
|
name: string;
|
|
1288
|
-
email: string;
|
|
1289
1288
|
emailVerified: boolean;
|
|
1289
|
+
email: string;
|
|
1290
1290
|
createdAt: Date;
|
|
1291
1291
|
updatedAt: Date;
|
|
1292
1292
|
image?: string | null | undefined;
|
|
@@ -1350,19 +1350,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1350
1350
|
session: {
|
|
1351
1351
|
session: Record<string, any> & {
|
|
1352
1352
|
id: string;
|
|
1353
|
-
|
|
1354
|
-
updatedAt: Date;
|
|
1353
|
+
token: string;
|
|
1355
1354
|
userId: string;
|
|
1356
1355
|
expiresAt: Date;
|
|
1357
|
-
|
|
1356
|
+
createdAt: Date;
|
|
1357
|
+
updatedAt: Date;
|
|
1358
1358
|
ipAddress?: string | null | undefined;
|
|
1359
1359
|
userAgent?: string | null | undefined;
|
|
1360
1360
|
};
|
|
1361
1361
|
user: Record<string, any> & {
|
|
1362
1362
|
id: string;
|
|
1363
1363
|
name: string;
|
|
1364
|
-
email: string;
|
|
1365
1364
|
emailVerified: boolean;
|
|
1365
|
+
email: string;
|
|
1366
1366
|
createdAt: Date;
|
|
1367
1367
|
updatedAt: Date;
|
|
1368
1368
|
image?: string | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -160,19 +160,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
160
160
|
session: {
|
|
161
161
|
session: Record<string, any> & {
|
|
162
162
|
id: string;
|
|
163
|
-
|
|
164
|
-
updatedAt: Date;
|
|
163
|
+
token: string;
|
|
165
164
|
userId: string;
|
|
166
165
|
expiresAt: Date;
|
|
167
|
-
|
|
166
|
+
createdAt: Date;
|
|
167
|
+
updatedAt: Date;
|
|
168
168
|
ipAddress?: string | null | undefined;
|
|
169
169
|
userAgent?: string | null | undefined;
|
|
170
170
|
};
|
|
171
171
|
user: Record<string, any> & {
|
|
172
172
|
id: string;
|
|
173
173
|
name: string;
|
|
174
|
-
email: string;
|
|
175
174
|
emailVerified: boolean;
|
|
175
|
+
email: string;
|
|
176
176
|
createdAt: Date;
|
|
177
177
|
updatedAt: Date;
|
|
178
178
|
image?: string | null | undefined;
|
|
@@ -215,19 +215,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
215
215
|
session: {
|
|
216
216
|
session: Record<string, any> & {
|
|
217
217
|
id: string;
|
|
218
|
-
|
|
219
|
-
updatedAt: Date;
|
|
218
|
+
token: string;
|
|
220
219
|
userId: string;
|
|
221
220
|
expiresAt: Date;
|
|
222
|
-
|
|
221
|
+
createdAt: Date;
|
|
222
|
+
updatedAt: Date;
|
|
223
223
|
ipAddress?: string | null | undefined;
|
|
224
224
|
userAgent?: string | null | undefined;
|
|
225
225
|
};
|
|
226
226
|
user: Record<string, any> & {
|
|
227
227
|
id: string;
|
|
228
228
|
name: string;
|
|
229
|
-
email: string;
|
|
230
229
|
emailVerified: boolean;
|
|
230
|
+
email: string;
|
|
231
231
|
createdAt: Date;
|
|
232
232
|
updatedAt: Date;
|
|
233
233
|
image?: string | null | undefined;
|
|
@@ -287,19 +287,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
287
287
|
session: {
|
|
288
288
|
session: Record<string, any> & {
|
|
289
289
|
id: string;
|
|
290
|
-
|
|
291
|
-
updatedAt: Date;
|
|
290
|
+
token: string;
|
|
292
291
|
userId: string;
|
|
293
292
|
expiresAt: Date;
|
|
294
|
-
|
|
293
|
+
createdAt: Date;
|
|
294
|
+
updatedAt: Date;
|
|
295
295
|
ipAddress?: string | null | undefined;
|
|
296
296
|
userAgent?: string | null | undefined;
|
|
297
297
|
};
|
|
298
298
|
user: Record<string, any> & {
|
|
299
299
|
id: string;
|
|
300
300
|
name: string;
|
|
301
|
-
email: string;
|
|
302
301
|
emailVerified: boolean;
|
|
302
|
+
email: string;
|
|
303
303
|
createdAt: Date;
|
|
304
304
|
updatedAt: Date;
|
|
305
305
|
image?: string | null | undefined;
|
|
@@ -371,19 +371,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
371
371
|
session: {
|
|
372
372
|
session: Record<string, any> & {
|
|
373
373
|
id: string;
|
|
374
|
-
|
|
375
|
-
updatedAt: Date;
|
|
374
|
+
token: string;
|
|
376
375
|
userId: string;
|
|
377
376
|
expiresAt: Date;
|
|
378
|
-
|
|
377
|
+
createdAt: Date;
|
|
378
|
+
updatedAt: Date;
|
|
379
379
|
ipAddress?: string | null | undefined;
|
|
380
380
|
userAgent?: string | null | undefined;
|
|
381
381
|
};
|
|
382
382
|
user: Record<string, any> & {
|
|
383
383
|
id: string;
|
|
384
384
|
name: string;
|
|
385
|
-
email: string;
|
|
386
385
|
emailVerified: boolean;
|
|
386
|
+
email: string;
|
|
387
387
|
createdAt: Date;
|
|
388
388
|
updatedAt: Date;
|
|
389
389
|
image?: string | null | undefined;
|
|
@@ -447,19 +447,19 @@ declare const portal: () => (polar: Polar) => {
|
|
|
447
447
|
session: {
|
|
448
448
|
session: Record<string, any> & {
|
|
449
449
|
id: string;
|
|
450
|
-
|
|
451
|
-
updatedAt: Date;
|
|
450
|
+
token: string;
|
|
452
451
|
userId: string;
|
|
453
452
|
expiresAt: Date;
|
|
454
|
-
|
|
453
|
+
createdAt: Date;
|
|
454
|
+
updatedAt: Date;
|
|
455
455
|
ipAddress?: string | null | undefined;
|
|
456
456
|
userAgent?: string | null | undefined;
|
|
457
457
|
};
|
|
458
458
|
user: Record<string, any> & {
|
|
459
459
|
id: string;
|
|
460
460
|
name: string;
|
|
461
|
-
email: string;
|
|
462
461
|
emailVerified: boolean;
|
|
462
|
+
email: string;
|
|
463
463
|
createdAt: Date;
|
|
464
464
|
updatedAt: Date;
|
|
465
465
|
image?: string | null | undefined;
|
|
@@ -518,19 +518,19 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
518
518
|
session: {
|
|
519
519
|
session: Record<string, any> & {
|
|
520
520
|
id: string;
|
|
521
|
-
|
|
522
|
-
updatedAt: Date;
|
|
521
|
+
token: string;
|
|
523
522
|
userId: string;
|
|
524
523
|
expiresAt: Date;
|
|
525
|
-
|
|
524
|
+
createdAt: Date;
|
|
525
|
+
updatedAt: Date;
|
|
526
526
|
ipAddress?: string | null | undefined;
|
|
527
527
|
userAgent?: string | null | undefined;
|
|
528
528
|
};
|
|
529
529
|
user: Record<string, any> & {
|
|
530
530
|
id: string;
|
|
531
531
|
name: string;
|
|
532
|
-
email: string;
|
|
533
532
|
emailVerified: boolean;
|
|
533
|
+
email: string;
|
|
534
534
|
createdAt: Date;
|
|
535
535
|
updatedAt: Date;
|
|
536
536
|
image?: string | null | undefined;
|
|
@@ -596,19 +596,19 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
596
596
|
session: {
|
|
597
597
|
session: Record<string, any> & {
|
|
598
598
|
id: string;
|
|
599
|
-
|
|
600
|
-
updatedAt: Date;
|
|
599
|
+
token: string;
|
|
601
600
|
userId: string;
|
|
602
601
|
expiresAt: Date;
|
|
603
|
-
|
|
602
|
+
createdAt: Date;
|
|
603
|
+
updatedAt: Date;
|
|
604
604
|
ipAddress?: string | null | undefined;
|
|
605
605
|
userAgent?: string | null | undefined;
|
|
606
606
|
};
|
|
607
607
|
user: Record<string, any> & {
|
|
608
608
|
id: string;
|
|
609
609
|
name: string;
|
|
610
|
-
email: string;
|
|
611
610
|
emailVerified: boolean;
|
|
611
|
+
email: string;
|
|
612
612
|
createdAt: Date;
|
|
613
613
|
updatedAt: Date;
|
|
614
614
|
image?: string | null | undefined;
|
|
@@ -923,19 +923,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
923
923
|
session: {
|
|
924
924
|
session: Record<string, any> & {
|
|
925
925
|
id: string;
|
|
926
|
-
|
|
927
|
-
updatedAt: Date;
|
|
926
|
+
token: string;
|
|
928
927
|
userId: string;
|
|
929
928
|
expiresAt: Date;
|
|
930
|
-
|
|
929
|
+
createdAt: Date;
|
|
930
|
+
updatedAt: Date;
|
|
931
931
|
ipAddress?: string | null | undefined;
|
|
932
932
|
userAgent?: string | null | undefined;
|
|
933
933
|
};
|
|
934
934
|
user: Record<string, any> & {
|
|
935
935
|
id: string;
|
|
936
936
|
name: string;
|
|
937
|
-
email: string;
|
|
938
937
|
emailVerified: boolean;
|
|
938
|
+
email: string;
|
|
939
939
|
createdAt: Date;
|
|
940
940
|
updatedAt: Date;
|
|
941
941
|
image?: string | null | undefined;
|
|
@@ -1001,19 +1001,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1001
1001
|
session: {
|
|
1002
1002
|
session: Record<string, any> & {
|
|
1003
1003
|
id: string;
|
|
1004
|
-
|
|
1005
|
-
updatedAt: Date;
|
|
1004
|
+
token: string;
|
|
1006
1005
|
userId: string;
|
|
1007
1006
|
expiresAt: Date;
|
|
1008
|
-
|
|
1007
|
+
createdAt: Date;
|
|
1008
|
+
updatedAt: Date;
|
|
1009
1009
|
ipAddress?: string | null | undefined;
|
|
1010
1010
|
userAgent?: string | null | undefined;
|
|
1011
1011
|
};
|
|
1012
1012
|
user: Record<string, any> & {
|
|
1013
1013
|
id: string;
|
|
1014
1014
|
name: string;
|
|
1015
|
-
email: string;
|
|
1016
1015
|
emailVerified: boolean;
|
|
1016
|
+
email: string;
|
|
1017
1017
|
createdAt: Date;
|
|
1018
1018
|
updatedAt: Date;
|
|
1019
1019
|
image?: string | null | undefined;
|
|
@@ -1063,19 +1063,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1063
1063
|
session: {
|
|
1064
1064
|
session: Record<string, any> & {
|
|
1065
1065
|
id: string;
|
|
1066
|
-
|
|
1067
|
-
updatedAt: Date;
|
|
1066
|
+
token: string;
|
|
1068
1067
|
userId: string;
|
|
1069
1068
|
expiresAt: Date;
|
|
1070
|
-
|
|
1069
|
+
createdAt: Date;
|
|
1070
|
+
updatedAt: Date;
|
|
1071
1071
|
ipAddress?: string | null | undefined;
|
|
1072
1072
|
userAgent?: string | null | undefined;
|
|
1073
1073
|
};
|
|
1074
1074
|
user: Record<string, any> & {
|
|
1075
1075
|
id: string;
|
|
1076
1076
|
name: string;
|
|
1077
|
-
email: string;
|
|
1078
1077
|
emailVerified: boolean;
|
|
1078
|
+
email: string;
|
|
1079
1079
|
createdAt: Date;
|
|
1080
1080
|
updatedAt: Date;
|
|
1081
1081
|
image?: string | null | undefined;
|
|
@@ -1118,19 +1118,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1118
1118
|
session: {
|
|
1119
1119
|
session: Record<string, any> & {
|
|
1120
1120
|
id: string;
|
|
1121
|
-
|
|
1122
|
-
updatedAt: Date;
|
|
1121
|
+
token: string;
|
|
1123
1122
|
userId: string;
|
|
1124
1123
|
expiresAt: Date;
|
|
1125
|
-
|
|
1124
|
+
createdAt: Date;
|
|
1125
|
+
updatedAt: Date;
|
|
1126
1126
|
ipAddress?: string | null | undefined;
|
|
1127
1127
|
userAgent?: string | null | undefined;
|
|
1128
1128
|
};
|
|
1129
1129
|
user: Record<string, any> & {
|
|
1130
1130
|
id: string;
|
|
1131
1131
|
name: string;
|
|
1132
|
-
email: string;
|
|
1133
1132
|
emailVerified: boolean;
|
|
1133
|
+
email: string;
|
|
1134
1134
|
createdAt: Date;
|
|
1135
1135
|
updatedAt: Date;
|
|
1136
1136
|
image?: string | null | undefined;
|
|
@@ -1190,19 +1190,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1190
1190
|
session: {
|
|
1191
1191
|
session: Record<string, any> & {
|
|
1192
1192
|
id: string;
|
|
1193
|
-
|
|
1194
|
-
updatedAt: Date;
|
|
1193
|
+
token: string;
|
|
1195
1194
|
userId: string;
|
|
1196
1195
|
expiresAt: Date;
|
|
1197
|
-
|
|
1196
|
+
createdAt: Date;
|
|
1197
|
+
updatedAt: Date;
|
|
1198
1198
|
ipAddress?: string | null | undefined;
|
|
1199
1199
|
userAgent?: string | null | undefined;
|
|
1200
1200
|
};
|
|
1201
1201
|
user: Record<string, any> & {
|
|
1202
1202
|
id: string;
|
|
1203
1203
|
name: string;
|
|
1204
|
-
email: string;
|
|
1205
1204
|
emailVerified: boolean;
|
|
1205
|
+
email: string;
|
|
1206
1206
|
createdAt: Date;
|
|
1207
1207
|
updatedAt: Date;
|
|
1208
1208
|
image?: string | null | undefined;
|
|
@@ -1274,19 +1274,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1274
1274
|
session: {
|
|
1275
1275
|
session: Record<string, any> & {
|
|
1276
1276
|
id: string;
|
|
1277
|
-
|
|
1278
|
-
updatedAt: Date;
|
|
1277
|
+
token: string;
|
|
1279
1278
|
userId: string;
|
|
1280
1279
|
expiresAt: Date;
|
|
1281
|
-
|
|
1280
|
+
createdAt: Date;
|
|
1281
|
+
updatedAt: Date;
|
|
1282
1282
|
ipAddress?: string | null | undefined;
|
|
1283
1283
|
userAgent?: string | null | undefined;
|
|
1284
1284
|
};
|
|
1285
1285
|
user: Record<string, any> & {
|
|
1286
1286
|
id: string;
|
|
1287
1287
|
name: string;
|
|
1288
|
-
email: string;
|
|
1289
1288
|
emailVerified: boolean;
|
|
1289
|
+
email: string;
|
|
1290
1290
|
createdAt: Date;
|
|
1291
1291
|
updatedAt: Date;
|
|
1292
1292
|
image?: string | null | undefined;
|
|
@@ -1350,19 +1350,19 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
1350
1350
|
session: {
|
|
1351
1351
|
session: Record<string, any> & {
|
|
1352
1352
|
id: string;
|
|
1353
|
-
|
|
1354
|
-
updatedAt: Date;
|
|
1353
|
+
token: string;
|
|
1355
1354
|
userId: string;
|
|
1356
1355
|
expiresAt: Date;
|
|
1357
|
-
|
|
1356
|
+
createdAt: Date;
|
|
1357
|
+
updatedAt: Date;
|
|
1358
1358
|
ipAddress?: string | null | undefined;
|
|
1359
1359
|
userAgent?: string | null | undefined;
|
|
1360
1360
|
};
|
|
1361
1361
|
user: Record<string, any> & {
|
|
1362
1362
|
id: string;
|
|
1363
1363
|
name: string;
|
|
1364
|
-
email: string;
|
|
1365
1364
|
emailVerified: boolean;
|
|
1365
|
+
email: string;
|
|
1366
1366
|
createdAt: Date;
|
|
1367
1367
|
updatedAt: Date;
|
|
1368
1368
|
image?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polar-sh/better-auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Polar integration for better-auth",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "1.9.4",
|
|
33
|
-
"@polar-sh/sdk": "^0.34.
|
|
33
|
+
"@polar-sh/sdk": "^0.34.5",
|
|
34
34
|
"@sindresorhus/tsconfig": "^7.0.0",
|
|
35
35
|
"@types/node": "^20.0.0",
|
|
36
36
|
"better-auth": "^1.2.7",
|
|
37
37
|
"tsup": "^8.3.5",
|
|
38
38
|
"vitest": "^2.1.8",
|
|
39
|
-
"@polar-sh/adapter-utils": "0.2.
|
|
39
|
+
"@polar-sh/adapter-utils": "0.2.2"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"zod": "^3.24.2"
|