@yielded/auth 0.1.0-beta.1 → 0.1.0-beta.2

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/README.md CHANGED
@@ -14,5 +14,5 @@ caller’s Scope; credentials stay outside public results and telemetry.
14
14
  Optional database, platform, browser, and OAuth adapters have separate exports.
15
15
  The root import does not load their peer dependencies. Effect is supplied by the host.
16
16
 
17
- See the [authentication guide](https://github.com/danieljvdm/effect-auth/blob/main/docs/guide/authentication.md)
18
- and [consumer examples](https://github.com/danieljvdm/effect-auth/tree/main/examples/auth).
17
+ See the [authentication guide](https://github.com/yielded-dev/auth/blob/main/docs/guide/authentication.md)
18
+ and [consumer examples](https://github.com/yielded-dev/auth/tree/main/examples/auth).
@@ -321,14 +321,14 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
321
321
  };
322
322
  }) => Effect.Effect<{
323
323
  readonly _tag: "Rejected";
324
+ } | {
325
+ readonly _tag: "Conflict";
324
326
  } | {
325
327
  readonly _tag: "Target";
326
328
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
327
329
  } | {
328
330
  readonly _tag: "Quarantine";
329
331
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
330
- } | {
331
- readonly _tag: "Conflict";
332
332
  }, OAuthUnavailable>;
333
333
  readonly settle: <A>(input: {
334
334
  readonly claim: OAuthConnectedClaim;
@@ -338,11 +338,11 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
338
338
  }, prepare: PrepareOAuthCommit<{
339
339
  readonly _tag: "Rejected";
340
340
  } | {
341
- readonly _tag: "Conflict";
341
+ readonly _tag: "Ambiguous";
342
342
  } | {
343
343
  readonly _tag: "Cancelled";
344
344
  } | {
345
- readonly _tag: "Ambiguous";
345
+ readonly _tag: "Conflict";
346
346
  } | {
347
347
  readonly _tag: "Connected";
348
348
  readonly grant: {
@@ -527,14 +527,14 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
527
527
  readonly retentionUntilMillis: number;
528
528
  }, prepare: PrepareOAuthCommit<{
529
529
  readonly _tag: "Rejected";
530
- } | {
531
- readonly _tag: "Conflict";
532
530
  } | {
533
531
  readonly _tag: "Disconnected";
534
532
  readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
535
533
  readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
536
534
  readonly affectedGrantCount: number;
537
535
  readonly replayed: boolean;
536
+ } | {
537
+ readonly _tag: "Conflict";
538
538
  }, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
539
539
  readonly inspectAccess: (input: {
540
540
  readonly authorization: OAuthConnectedUseAuthorization;
@@ -542,6 +542,8 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
542
542
  readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
543
543
  }) => Effect.Effect<{
544
544
  readonly _tag: "Rejected";
545
+ } | {
546
+ readonly _tag: "ReauthorizationRequired";
545
547
  } | {
546
548
  readonly _tag: "Busy";
547
549
  } | {
@@ -605,8 +607,6 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
605
607
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
606
608
  };
607
609
  };
608
- } | {
609
- readonly _tag: "ReauthorizationRequired";
610
610
  }, OAuthUnavailable>;
611
611
  readonly claimRefresh: <A>(input: {
612
612
  readonly grant: OAuthConnectedStoredGrant;
@@ -616,10 +616,10 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
616
616
  readonly lifetimeMillis: number;
617
617
  }, prepare: PrepareOAuthCommit<{
618
618
  readonly _tag: "Rejected";
619
- } | {
620
- readonly _tag: "Busy";
621
619
  } | {
622
620
  readonly _tag: "ReauthorizationRequired";
621
+ } | {
622
+ readonly _tag: "Busy";
623
623
  } | {
624
624
  readonly _tag: "Claimed";
625
625
  readonly claim: {
@@ -765,10 +765,10 @@ declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
765
765
  readonly lifetimeMillis: number;
766
766
  }, prepare: PrepareOAuthCommit<{
767
767
  readonly _tag: "Rejected";
768
- } | {
769
- readonly _tag: "Busy";
770
768
  } | {
771
769
  readonly _tag: "ReauthorizationRequired";
770
+ } | {
771
+ readonly _tag: "Busy";
772
772
  } | {
773
773
  readonly _tag: "Admitted";
774
774
  readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
@@ -699,11 +699,9 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
699
699
  readonly invalidation: SessionInvalidationWindow;
700
700
  readonly nowMillis: number;
701
701
  }, prepare: PrepareOAuthCommit<{
702
- readonly _tag: "Ambiguous";
703
- } | {
704
702
  readonly _tag: "Rejected";
705
703
  } | {
706
- readonly _tag: "Conflict";
704
+ readonly _tag: "Ambiguous";
707
705
  } | {
708
706
  readonly _tag: "Cancelled";
709
707
  } | {
@@ -727,6 +725,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
727
725
  };
728
726
  };
729
727
  readonly changed: boolean;
728
+ } | {
729
+ readonly _tag: "Conflict";
730
730
  }, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
731
731
  readonly inspectUnlink: (input: {
732
732
  readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
@@ -1281,14 +1281,14 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1281
1281
  };
1282
1282
  }) => Effect.Effect<{
1283
1283
  readonly _tag: "Rejected";
1284
+ } | {
1285
+ readonly _tag: "Conflict";
1284
1286
  } | {
1285
1287
  readonly _tag: "Target";
1286
1288
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1287
1289
  } | {
1288
1290
  readonly _tag: "Quarantine";
1289
1291
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1290
- } | {
1291
- readonly _tag: "Conflict";
1292
1292
  }, OAuthUnavailable>;
1293
1293
  readonly settle: <A>(input: {
1294
1294
  readonly claim: OAuthConnectedClaim;
@@ -1296,13 +1296,13 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1296
1296
  readonly authorization: OAuthConnectedActionAuthorization;
1297
1297
  readonly nowMillis: number;
1298
1298
  }, prepare: PrepareOAuthCommit<{
1299
- readonly _tag: "Ambiguous";
1300
- } | {
1301
1299
  readonly _tag: "Rejected";
1302
1300
  } | {
1303
- readonly _tag: "Conflict";
1301
+ readonly _tag: "Ambiguous";
1304
1302
  } | {
1305
1303
  readonly _tag: "Cancelled";
1304
+ } | {
1305
+ readonly _tag: "Conflict";
1306
1306
  } | {
1307
1307
  readonly _tag: "Connected";
1308
1308
  readonly grant: {
@@ -221,12 +221,12 @@ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
221
221
  readonly nowMillis: number;
222
222
  }, prepare: PrepareOAuthCommit<{
223
223
  readonly _tag: "Rejected";
224
+ } | {
225
+ readonly _tag: "Ambiguous";
224
226
  } | {
225
227
  readonly _tag: "Conflict";
226
228
  } | {
227
229
  readonly _tag: "Cancelled";
228
- } | {
229
- readonly _tag: "Ambiguous";
230
230
  } | {
231
231
  readonly _tag: "Linked";
232
232
  readonly credential: {
@@ -592,6 +592,8 @@ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
592
592
  readonly flow: OAuthConnectedPendingFlow;
593
593
  readonly authorization: OAuthConnectedActionAuthorization;
594
594
  }, prepare: PrepareOAuthCommit<{
595
+ readonly _tag: "Rejected";
596
+ } | {
595
597
  readonly _tag: "Issued";
596
598
  readonly flow: {
597
599
  readonly context: {
@@ -683,8 +685,6 @@ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
683
685
  };
684
686
  readonly retentionUntilMillis: number;
685
687
  };
686
- } | {
687
- readonly _tag: "Rejected";
688
688
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
689
689
  readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
690
690
  readonly claim: <A>(input: {
@@ -802,14 +802,14 @@ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
802
802
  };
803
803
  }) => import("effect/Effect").Effect<{
804
804
  readonly _tag: "Rejected";
805
+ } | {
806
+ readonly _tag: "Conflict";
805
807
  } | {
806
808
  readonly _tag: "Target";
807
809
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
808
810
  } | {
809
811
  readonly _tag: "Quarantine";
810
812
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
811
- } | {
812
- readonly _tag: "Conflict";
813
813
  }, OAuthUnavailable>;
814
814
  readonly settle: <A>(input: {
815
815
  readonly claim: OAuthConnectedClaim;
@@ -818,12 +818,12 @@ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
818
818
  readonly nowMillis: number;
819
819
  }, prepare: PrepareOAuthCommit<{
820
820
  readonly _tag: "Rejected";
821
+ } | {
822
+ readonly _tag: "Ambiguous";
821
823
  } | {
822
824
  readonly _tag: "Conflict";
823
825
  } | {
824
826
  readonly _tag: "Cancelled";
825
- } | {
826
- readonly _tag: "Ambiguous";
827
827
  } | {
828
828
  readonly _tag: "Connected";
829
829
  readonly grant: {
@@ -220,12 +220,12 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
220
220
  readonly nowMillis: number;
221
221
  }, prepare: PrepareOAuthCommit<{
222
222
  readonly _tag: "Rejected";
223
+ } | {
224
+ readonly _tag: "Ambiguous";
223
225
  } | {
224
226
  readonly _tag: "Conflict";
225
227
  } | {
226
228
  readonly _tag: "Cancelled";
227
- } | {
228
- readonly _tag: "Ambiguous";
229
229
  } | {
230
230
  readonly _tag: "Linked";
231
231
  readonly credential: {
@@ -591,6 +591,8 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
591
591
  readonly flow: OAuthConnectedPendingFlow;
592
592
  readonly authorization: OAuthConnectedActionAuthorization;
593
593
  }, prepare: PrepareOAuthCommit<{
594
+ readonly _tag: "Rejected";
595
+ } | {
594
596
  readonly _tag: "Issued";
595
597
  readonly flow: {
596
598
  readonly context: {
@@ -682,8 +684,6 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
682
684
  };
683
685
  readonly retentionUntilMillis: number;
684
686
  };
685
- } | {
686
- readonly _tag: "Rejected";
687
687
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
688
688
  readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
689
689
  readonly claim: <A>(input: {
@@ -801,14 +801,14 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
801
801
  };
802
802
  }) => import("effect/Effect").Effect<{
803
803
  readonly _tag: "Rejected";
804
+ } | {
805
+ readonly _tag: "Conflict";
804
806
  } | {
805
807
  readonly _tag: "Target";
806
808
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
807
809
  } | {
808
810
  readonly _tag: "Quarantine";
809
811
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
810
- } | {
811
- readonly _tag: "Conflict";
812
812
  }, OAuthUnavailable>;
813
813
  readonly settle: <A>(input: {
814
814
  readonly claim: OAuthConnectedClaim;
@@ -817,12 +817,12 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
817
817
  readonly nowMillis: number;
818
818
  }, prepare: PrepareOAuthCommit<{
819
819
  readonly _tag: "Rejected";
820
+ } | {
821
+ readonly _tag: "Ambiguous";
820
822
  } | {
821
823
  readonly _tag: "Conflict";
822
824
  } | {
823
825
  readonly _tag: "Cancelled";
824
- } | {
825
- readonly _tag: "Ambiguous";
826
826
  } | {
827
827
  readonly _tag: "Connected";
828
828
  readonly grant: {
@@ -221,11 +221,11 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
221
221
  }, prepare: PrepareOAuthCommit<{
222
222
  readonly _tag: "Rejected";
223
223
  } | {
224
- readonly _tag: "Conflict";
224
+ readonly _tag: "Ambiguous";
225
225
  } | {
226
226
  readonly _tag: "Cancelled";
227
227
  } | {
228
- readonly _tag: "Ambiguous";
228
+ readonly _tag: "Conflict";
229
229
  } | {
230
230
  readonly _tag: "Linked";
231
231
  readonly credential: {
@@ -801,14 +801,14 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
801
801
  };
802
802
  }) => import("effect/Effect").Effect<{
803
803
  readonly _tag: "Rejected";
804
+ } | {
805
+ readonly _tag: "Conflict";
804
806
  } | {
805
807
  readonly _tag: "Target";
806
808
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
807
809
  } | {
808
810
  readonly _tag: "Quarantine";
809
811
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
810
- } | {
811
- readonly _tag: "Conflict";
812
812
  }, OAuthUnavailable>;
813
813
  readonly settle: <A>(input: {
814
814
  readonly claim: OAuthConnectedClaim;
@@ -818,11 +818,11 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
818
818
  }, prepare: PrepareOAuthCommit<{
819
819
  readonly _tag: "Rejected";
820
820
  } | {
821
- readonly _tag: "Conflict";
821
+ readonly _tag: "Ambiguous";
822
822
  } | {
823
823
  readonly _tag: "Cancelled";
824
824
  } | {
825
- readonly _tag: "Ambiguous";
825
+ readonly _tag: "Conflict";
826
826
  } | {
827
827
  readonly _tag: "Connected";
828
828
  readonly grant: {
@@ -1007,14 +1007,14 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1007
1007
  readonly retentionUntilMillis: number;
1008
1008
  }, prepare: PrepareOAuthCommit<{
1009
1009
  readonly _tag: "Rejected";
1010
- } | {
1011
- readonly _tag: "Conflict";
1012
1010
  } | {
1013
1011
  readonly _tag: "Disconnected";
1014
1012
  readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1015
1013
  readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
1016
1014
  readonly affectedGrantCount: number;
1017
1015
  readonly replayed: boolean;
1016
+ } | {
1017
+ readonly _tag: "Conflict";
1018
1018
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1019
1019
  readonly inspectAccess: (input: {
1020
1020
  readonly authorization: OAuthConnectedUseAuthorization;
@@ -1022,6 +1022,8 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1022
1022
  readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1023
1023
  }) => import("effect/Effect").Effect<{
1024
1024
  readonly _tag: "Rejected";
1025
+ } | {
1026
+ readonly _tag: "ReauthorizationRequired";
1025
1027
  } | {
1026
1028
  readonly _tag: "Busy";
1027
1029
  } | {
@@ -1085,8 +1087,6 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1085
1087
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1086
1088
  };
1087
1089
  };
1088
- } | {
1089
- readonly _tag: "ReauthorizationRequired";
1090
1090
  }, OAuthUnavailable>;
1091
1091
  readonly claimRefresh: <A>(input: {
1092
1092
  readonly grant: OAuthConnectedStoredGrant;
@@ -1096,10 +1096,10 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1096
1096
  readonly lifetimeMillis: number;
1097
1097
  }, prepare: PrepareOAuthCommit<{
1098
1098
  readonly _tag: "Rejected";
1099
- } | {
1100
- readonly _tag: "Busy";
1101
1099
  } | {
1102
1100
  readonly _tag: "ReauthorizationRequired";
1101
+ } | {
1102
+ readonly _tag: "Busy";
1103
1103
  } | {
1104
1104
  readonly _tag: "Claimed";
1105
1105
  readonly claim: {
@@ -1245,10 +1245,10 @@ declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1245
1245
  readonly lifetimeMillis: number;
1246
1246
  }, prepare: PrepareOAuthCommit<{
1247
1247
  readonly _tag: "Rejected";
1248
- } | {
1249
- readonly _tag: "Busy";
1250
1248
  } | {
1251
1249
  readonly _tag: "ReauthorizationRequired";
1250
+ } | {
1251
+ readonly _tag: "Busy";
1252
1252
  } | {
1253
1253
  readonly _tag: "Admitted";
1254
1254
  readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
@@ -699,12 +699,12 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
699
699
  readonly nowMillis: number;
700
700
  }, prepare: PrepareOAuthCommit<{
701
701
  readonly _tag: "Rejected";
702
- } | {
703
- readonly _tag: "Conflict";
704
702
  } | {
705
703
  readonly _tag: "Cancelled";
706
704
  } | {
707
705
  readonly _tag: "Ambiguous";
706
+ } | {
707
+ readonly _tag: "Conflict";
708
708
  } | {
709
709
  readonly _tag: "Linked";
710
710
  readonly credential: {
@@ -781,6 +781,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
781
781
  readonly _tag: "Rejected";
782
782
  } | {
783
783
  readonly _tag: "Conflict";
784
+ } | {
785
+ readonly _tag: "LastSignInMethod";
784
786
  } | {
785
787
  readonly _tag: "Unlinked";
786
788
  readonly result: {
@@ -794,8 +796,6 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
794
796
  };
795
797
  };
796
798
  readonly replayed: boolean;
797
- } | {
798
- readonly _tag: "LastSignInMethod";
799
799
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
800
800
  readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
801
801
  readonly terminalized: number;
@@ -1070,6 +1070,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1070
1070
  readonly flow: OAuthConnectedPendingFlow;
1071
1071
  readonly authorization: OAuthConnectedActionAuthorization;
1072
1072
  }, prepare: PrepareOAuthCommit<{
1073
+ readonly _tag: "Rejected";
1074
+ } | {
1073
1075
  readonly _tag: "Issued";
1074
1076
  readonly flow: {
1075
1077
  readonly context: {
@@ -1161,8 +1163,6 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1161
1163
  };
1162
1164
  readonly retentionUntilMillis: number;
1163
1165
  };
1164
- } | {
1165
- readonly _tag: "Rejected";
1166
1166
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1167
1167
  readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
1168
1168
  readonly claim: <A>(input: {
@@ -1296,12 +1296,12 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1296
1296
  readonly nowMillis: number;
1297
1297
  }, prepare: PrepareOAuthCommit<{
1298
1298
  readonly _tag: "Rejected";
1299
- } | {
1300
- readonly _tag: "Conflict";
1301
1299
  } | {
1302
1300
  readonly _tag: "Cancelled";
1303
1301
  } | {
1304
1302
  readonly _tag: "Ambiguous";
1303
+ } | {
1304
+ readonly _tag: "Conflict";
1305
1305
  } | {
1306
1306
  readonly _tag: "Connected";
1307
1307
  readonly grant: {
@@ -754,11 +754,9 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
754
754
  readonly invalidation: SessionInvalidationWindow;
755
755
  readonly nowMillis: number;
756
756
  }, prepare: PrepareOAuthCommit<{
757
- readonly _tag: "Ambiguous";
758
- } | {
759
757
  readonly _tag: "Rejected";
760
758
  } | {
761
- readonly _tag: "Conflict";
759
+ readonly _tag: "Ambiguous";
762
760
  } | {
763
761
  readonly _tag: "Cancelled";
764
762
  } | {
@@ -782,6 +780,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
782
780
  };
783
781
  };
784
782
  readonly changed: boolean;
783
+ } | {
784
+ readonly _tag: "Conflict";
785
785
  }, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
786
786
  readonly inspectUnlink: (input: {
787
787
  readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
@@ -1336,14 +1336,14 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1336
1336
  };
1337
1337
  }) => Effect.Effect<{
1338
1338
  readonly _tag: "Rejected";
1339
+ } | {
1340
+ readonly _tag: "Conflict";
1339
1341
  } | {
1340
1342
  readonly _tag: "Target";
1341
1343
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1342
1344
  } | {
1343
1345
  readonly _tag: "Quarantine";
1344
1346
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1345
- } | {
1346
- readonly _tag: "Conflict";
1347
1347
  }, OAuthUnavailable>;
1348
1348
  readonly settle: <A>(input: {
1349
1349
  readonly claim: OAuthConnectedClaim;
@@ -1351,13 +1351,13 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1351
1351
  readonly authorization: OAuthConnectedActionAuthorization;
1352
1352
  readonly nowMillis: number;
1353
1353
  }, prepare: PrepareOAuthCommit<{
1354
- readonly _tag: "Ambiguous";
1355
- } | {
1356
1354
  readonly _tag: "Rejected";
1357
1355
  } | {
1358
- readonly _tag: "Conflict";
1356
+ readonly _tag: "Ambiguous";
1359
1357
  } | {
1360
1358
  readonly _tag: "Cancelled";
1359
+ } | {
1360
+ readonly _tag: "Conflict";
1361
1361
  } | {
1362
1362
  readonly _tag: "Connected";
1363
1363
  readonly grant: {
@@ -699,12 +699,12 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
699
699
  readonly nowMillis: number;
700
700
  }, prepare: PrepareOAuthCommit<{
701
701
  readonly _tag: "Rejected";
702
+ } | {
703
+ readonly _tag: "Ambiguous";
702
704
  } | {
703
705
  readonly _tag: "Conflict";
704
706
  } | {
705
707
  readonly _tag: "Cancelled";
706
- } | {
707
- readonly _tag: "Ambiguous";
708
708
  } | {
709
709
  readonly _tag: "Linked";
710
710
  readonly credential: {
@@ -1070,6 +1070,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1070
1070
  readonly flow: OAuthConnectedPendingFlow;
1071
1071
  readonly authorization: OAuthConnectedActionAuthorization;
1072
1072
  }, prepare: PrepareOAuthCommit<{
1073
+ readonly _tag: "Rejected";
1074
+ } | {
1073
1075
  readonly _tag: "Issued";
1074
1076
  readonly flow: {
1075
1077
  readonly context: {
@@ -1161,8 +1163,6 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1161
1163
  };
1162
1164
  readonly retentionUntilMillis: number;
1163
1165
  };
1164
- } | {
1165
- readonly _tag: "Rejected";
1166
1166
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1167
1167
  readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
1168
1168
  readonly claim: <A>(input: {
@@ -1280,14 +1280,14 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1280
1280
  };
1281
1281
  }) => import("effect/Effect").Effect<{
1282
1282
  readonly _tag: "Rejected";
1283
+ } | {
1284
+ readonly _tag: "Conflict";
1283
1285
  } | {
1284
1286
  readonly _tag: "Target";
1285
1287
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1286
1288
  } | {
1287
1289
  readonly _tag: "Quarantine";
1288
1290
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1289
- } | {
1290
- readonly _tag: "Conflict";
1291
1291
  }, OAuthUnavailable>;
1292
1292
  readonly settle: <A>(input: {
1293
1293
  readonly claim: OAuthConnectedClaim;
@@ -1296,12 +1296,12 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1296
1296
  readonly nowMillis: number;
1297
1297
  }, prepare: PrepareOAuthCommit<{
1298
1298
  readonly _tag: "Rejected";
1299
+ } | {
1300
+ readonly _tag: "Ambiguous";
1299
1301
  } | {
1300
1302
  readonly _tag: "Conflict";
1301
1303
  } | {
1302
1304
  readonly _tag: "Cancelled";
1303
- } | {
1304
- readonly _tag: "Ambiguous";
1305
1305
  } | {
1306
1306
  readonly _tag: "Connected";
1307
1307
  readonly grant: {
@@ -700,11 +700,11 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
700
700
  }, prepare: PrepareOAuthCommit<{
701
701
  readonly _tag: "Rejected";
702
702
  } | {
703
- readonly _tag: "Conflict";
703
+ readonly _tag: "Ambiguous";
704
704
  } | {
705
705
  readonly _tag: "Cancelled";
706
706
  } | {
707
- readonly _tag: "Ambiguous";
707
+ readonly _tag: "Conflict";
708
708
  } | {
709
709
  readonly _tag: "Linked";
710
710
  readonly credential: {
@@ -1280,14 +1280,14 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1280
1280
  };
1281
1281
  }) => import("effect/Effect").Effect<{
1282
1282
  readonly _tag: "Rejected";
1283
+ } | {
1284
+ readonly _tag: "Conflict";
1283
1285
  } | {
1284
1286
  readonly _tag: "Target";
1285
1287
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1286
1288
  } | {
1287
1289
  readonly _tag: "Quarantine";
1288
1290
  readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1289
- } | {
1290
- readonly _tag: "Conflict";
1291
1291
  }, OAuthUnavailable>;
1292
1292
  readonly settle: <A>(input: {
1293
1293
  readonly claim: OAuthConnectedClaim;
@@ -1297,11 +1297,11 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1297
1297
  }, prepare: PrepareOAuthCommit<{
1298
1298
  readonly _tag: "Rejected";
1299
1299
  } | {
1300
- readonly _tag: "Conflict";
1300
+ readonly _tag: "Ambiguous";
1301
1301
  } | {
1302
1302
  readonly _tag: "Cancelled";
1303
1303
  } | {
1304
- readonly _tag: "Ambiguous";
1304
+ readonly _tag: "Conflict";
1305
1305
  } | {
1306
1306
  readonly _tag: "Connected";
1307
1307
  readonly grant: {
@@ -1486,14 +1486,14 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1486
1486
  readonly retentionUntilMillis: number;
1487
1487
  }, prepare: PrepareOAuthCommit<{
1488
1488
  readonly _tag: "Rejected";
1489
- } | {
1490
- readonly _tag: "Conflict";
1491
1489
  } | {
1492
1490
  readonly _tag: "Disconnected";
1493
1491
  readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1494
1492
  readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
1495
1493
  readonly affectedGrantCount: number;
1496
1494
  readonly replayed: boolean;
1495
+ } | {
1496
+ readonly _tag: "Conflict";
1497
1497
  }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1498
1498
  readonly inspectAccess: (input: {
1499
1499
  readonly authorization: OAuthConnectedUseAuthorization;
@@ -1501,6 +1501,8 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1501
1501
  readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1502
1502
  }) => import("effect/Effect").Effect<{
1503
1503
  readonly _tag: "Rejected";
1504
+ } | {
1505
+ readonly _tag: "ReauthorizationRequired";
1504
1506
  } | {
1505
1507
  readonly _tag: "Busy";
1506
1508
  } | {
@@ -1564,8 +1566,6 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1564
1566
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1565
1567
  };
1566
1568
  };
1567
- } | {
1568
- readonly _tag: "ReauthorizationRequired";
1569
1569
  }, OAuthUnavailable>;
1570
1570
  readonly claimRefresh: <A>(input: {
1571
1571
  readonly grant: OAuthConnectedStoredGrant;
@@ -1575,10 +1575,10 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1575
1575
  readonly lifetimeMillis: number;
1576
1576
  }, prepare: PrepareOAuthCommit<{
1577
1577
  readonly _tag: "Rejected";
1578
- } | {
1579
- readonly _tag: "Busy";
1580
1578
  } | {
1581
1579
  readonly _tag: "ReauthorizationRequired";
1580
+ } | {
1581
+ readonly _tag: "Busy";
1582
1582
  } | {
1583
1583
  readonly _tag: "Claimed";
1584
1584
  readonly claim: {
@@ -1724,10 +1724,10 @@ declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1724
1724
  readonly lifetimeMillis: number;
1725
1725
  }, prepare: PrepareOAuthCommit<{
1726
1726
  readonly _tag: "Rejected";
1727
- } | {
1728
- readonly _tag: "Busy";
1729
1727
  } | {
1730
1728
  readonly _tag: "ReauthorizationRequired";
1729
+ } | {
1730
+ readonly _tag: "Busy";
1731
1731
  } | {
1732
1732
  readonly _tag: "Admitted";
1733
1733
  readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
@@ -147,12 +147,12 @@ declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O extends SQL
147
147
  readonly nowMillis: number;
148
148
  }, prepare: PrepareOAuthCommit<{
149
149
  readonly _tag: "Rejected";
150
- } | {
151
- readonly _tag: "Conflict";
152
150
  } | {
153
151
  readonly _tag: "Cancelled";
154
152
  } | {
155
153
  readonly _tag: "Ambiguous";
154
+ } | {
155
+ readonly _tag: "Conflict";
156
156
  } | {
157
157
  readonly _tag: "Linked";
158
158
  readonly credential: {
@@ -229,6 +229,8 @@ declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O extends SQL
229
229
  readonly _tag: "Rejected";
230
230
  } | {
231
231
  readonly _tag: "Conflict";
232
+ } | {
233
+ readonly _tag: "LastSignInMethod";
232
234
  } | {
233
235
  readonly _tag: "Unlinked";
234
236
  readonly result: {
@@ -242,8 +244,6 @@ declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O extends SQL
242
244
  };
243
245
  };
244
246
  readonly replayed: boolean;
245
- } | {
246
- readonly _tag: "LastSignInMethod";
247
247
  }, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
248
248
  readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
249
249
  readonly terminalized: number;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@yielded/auth","version":"0.1.0-beta.1","dependencies":{"@noble/ciphers":"2.1.1","@noble/hashes":"2.3.0"},"devDependencies":{"@cloudflare/workers-types":"5.20260825.1","@effect/platform-bun":"4.0.0-rc.112","@effect/platform-node":"4.0.0-rc.112","@effect/sql-d1":"4.0.0-rc.112","@effect/sql-libsql":"4.0.0-rc.112","@effect/sql-mysql2":"4.0.0-rc.112","@effect/sql-pg":"4.0.0-rc.112","@effect/sql-pglite":"4.0.0-rc.112","@effect/sql-sqlite-bun":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112","@effect/sql-sqlite-node":"4.0.0-rc.112","@effect/sql-sqlite-wasm":"4.0.0-rc.112","@effect/vitest":"4.0.0-rc.112","@simplewebauthn/browser":"14.0.0","@simplewebauthn/server":"14.0.1","drizzle-orm":"1.0.0-rc.5-ab785fc","effect":"4.0.0-rc.112","effect-cf":"0.40.0","openid-client":"6.8.8","tldts":"7.4.11","typescript":"7.0.2","vite-plus":"0.3.0"},"peerDependencies":{"@effect/sql-d1":">=4.0.0-rc.112","@effect/sql-libsql":">=4.0.0-rc.112","@effect/sql-mysql2":">=4.0.0-rc.112","@effect/sql-pg":">=4.0.0-rc.112","@effect/sql-pglite":">=4.0.0-rc.112","@effect/sql-sqlite-bun":">=4.0.0-rc.112","@effect/sql-sqlite-do":">=4.0.0-rc.112","@effect/sql-sqlite-node":">=4.0.0-rc.112","@effect/sql-sqlite-wasm":">=4.0.0-rc.112","@simplewebauthn/browser":">=14.0.0 <15","@simplewebauthn/server":">=14.0.1 <15","drizzle-orm":">=1.0.0-rc.5-ab785fc","effect":"^4.0.0-rc.112","effect-cf":"^0.40.0","openid-client":">=6.8.8 <7","tldts":">=7.4.11 <8"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./Auth":{"types":"./dist/Auth.d.mts","default":"./dist/Auth.mjs"},"./Drizzle":{"types":"./dist/Drizzle.d.mts","default":"./dist/Drizzle.mjs"},"./DrizzleD1":{"types":"./dist/DrizzleD1.d.mts","default":"./dist/DrizzleD1.mjs"},"./DrizzleLibsql":{"types":"./dist/DrizzleLibsql.d.mts","default":"./dist/DrizzleLibsql.mjs"},"./DrizzleMysql2":{"types":"./dist/DrizzleMysql2.d.mts","default":"./dist/DrizzleMysql2.mjs"},"./DrizzlePglite":{"types":"./dist/DrizzlePglite.d.mts","default":"./dist/DrizzlePglite.mjs"},"./DrizzlePostgres":{"types":"./dist/DrizzlePostgres.d.mts","default":"./dist/DrizzlePostgres.mjs"},"./DrizzleSqliteBun":{"types":"./dist/DrizzleSqliteBun.d.mts","default":"./dist/DrizzleSqliteBun.mjs"},"./DrizzleSqliteDo":{"types":"./dist/DrizzleSqliteDo.d.mts","default":"./dist/DrizzleSqliteDo.mjs"},"./DrizzleSqliteNode":{"types":"./dist/DrizzleSqliteNode.d.mts","default":"./dist/DrizzleSqliteNode.mjs"},"./DrizzleSqliteWasm":{"types":"./dist/DrizzleSqliteWasm.d.mts","default":"./dist/DrizzleSqliteWasm.mjs"},"./Cloudflare":{"types":"./dist/Cloudflare.d.mts","default":"./dist/Cloudflare.mjs"},"./Http":{"types":"./dist/Http.d.mts","default":"./dist/Http.mjs"},"./HttpServer":{"types":"./dist/HttpServer.d.mts","default":"./dist/HttpServer.mjs"},"./OperationHttp":{"types":"./dist/OperationHttp.d.mts","default":"./dist/OperationHttp.mjs"},"./OperationHttpClient":{"types":"./dist/OperationHttpClient.d.mts","default":"./dist/OperationHttpClient.mjs"},"./OperationHttpServer":{"types":"./dist/OperationHttpServer.d.mts","default":"./dist/OperationHttpServer.mjs"},"./Atom":{"types":"./dist/Atom.d.mts","default":"./dist/Atom.mjs"},"./Hooks":{"types":"./dist/Hooks.d.mts","default":"./dist/Hooks.mjs"},"./Identity":{"types":"./dist/Identity.d.mts","default":"./dist/Identity.mjs"},"./OAuth":{"types":"./dist/OAuth.d.mts","default":"./dist/OAuth.mjs"},"./Operations":{"types":"./dist/Operations.d.mts","default":"./dist/Operations.mjs"},"./Rpc":{"types":"./dist/Rpc.d.mts","default":"./dist/Rpc.mjs"},"./Schema":{"types":"./dist/Schema.d.mts","default":"./dist/Schema.mjs"},"./Testing":{"types":"./dist/Testing.d.mts","default":"./dist/Testing.mjs"},"./WebCrypto":{"types":"./dist/WebCrypto.d.mts","default":"./dist/WebCrypto.mjs"},"./Sessions":{"types":"./dist/Sessions.d.mts","default":"./dist/Sessions.mjs"},"./SessionContract":{"types":"./dist/SessionContract.d.mts","default":"./dist/SessionContract.mjs"},"./Proofs":{"types":"./dist/Proofs.d.mts","default":"./dist/Proofs.mjs"},"./Password":{"types":"./dist/Password.d.mts","default":"./dist/Password.mjs"},"./Email":{"types":"./dist/Email.d.mts","default":"./dist/Email.mjs"},"./OpenIdClient":{"types":"./dist/OpenIdClient.d.mts","default":"./dist/OpenIdClient.mjs"},"./OpenIdClientConnected":{"types":"./dist/OpenIdClientConnected.d.mts","default":"./dist/OpenIdClientConnected.mjs"},"./Passkey":{"types":"./dist/Passkey.d.mts","default":"./dist/Passkey.mjs"},"./PasskeyPassword":{"types":"./dist/PasskeyPassword.d.mts","default":"./dist/PasskeyPassword.mjs"},"./PasskeySimpleWebAuthn":{"types":"./dist/PasskeySimpleWebAuthn.d.mts","default":"./dist/PasskeySimpleWebAuthn.mjs"},"./PasskeyBrowser":{"types":"./dist/PasskeyBrowser.d.mts","default":"./dist/PasskeyBrowser.mjs"},"./GitHub":{"types":"./dist/GitHub.d.mts","default":"./dist/GitHub.mjs"},"./AuthSession":{"types":"./dist/AuthSession.d.mts","default":"./dist/AuthSession.mjs"},"./Errors":{"types":"./dist/Errors.d.mts","default":"./dist/Errors.mjs"},"./Workflows":{"types":"./dist/Workflows.d.mts","default":"./dist/Workflows.mjs"},"./PasswordHasher":{"types":"./dist/PasswordHasher.d.mts","default":"./dist/PasswordHasher.mjs"},"./EmailOtp":{"types":"./dist/EmailOtp.d.mts","default":"./dist/EmailOtp.mjs"},"./AuthStore":{"types":"./dist/AuthStore.d.mts","default":"./dist/AuthStore.mjs"},"./PasswordAuth":{"types":"./dist/PasswordAuth.d.mts","default":"./dist/PasswordAuth.mjs"},"./Policy":{"types":"./dist/Policy.d.mts","default":"./dist/Policy.mjs"},"./EmailOtpSender":{"types":"./dist/EmailOtpSender.d.mts","default":"./dist/EmailOtpSender.mjs"},"./AuthTokenCodec":{"types":"./dist/AuthTokenCodec.d.mts","default":"./dist/AuthTokenCodec.mjs"},"./IdentityResolver":{"types":"./dist/IdentityResolver.d.mts","default":"./dist/IdentityResolver.mjs"},"./PasswordCredentialStore":{"types":"./dist/PasswordCredentialStore.d.mts","default":"./dist/PasswordCredentialStore.mjs"},"./PhoneOtp":{"types":"./dist/PhoneOtp.d.mts","default":"./dist/PhoneOtp.mjs"},"./Totp":{"types":"./dist/Totp.d.mts","default":"./dist/Totp.mjs"},"./PasskeyContract":{"types":"./dist/PasskeyContract.d.mts","default":"./dist/PasskeyContract.mjs"},"./TotpContract":{"types":"./dist/TotpContract.d.mts","default":"./dist/TotpContract.mjs"},"./AuthContract":{"types":"./dist/AuthContract.d.mts","default":"./dist/AuthContract.mjs"},"./Client":{"types":"./dist/Client.d.mts","default":"./dist/Client.mjs"}},"description":"Composable authentication, sessions, and identity workflows for Effect.","keywords":["authentication","effect","oauth","passkeys","sessions","typescript"],"homepage":"https://github.com/danieljvdm/effect-auth#readme","bugs":{"url":"https://github.com/danieljvdm/effect-auth/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-auth.git","directory":"packages/effect-auth"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests","e2e":"bun test/e2e/harness.ts","example:totp":"bun test/fixtures/totp-sqlite-bun.ts"},"peerDependenciesMeta":{"@effect/sql-d1":{"optional":true},"@effect/sql-libsql":{"optional":true},"@effect/sql-mysql2":{"optional":true},"@effect/sql-pg":{"optional":true},"@effect/sql-pglite":{"optional":true},"@effect/sql-sqlite-bun":{"optional":true},"@effect/sql-sqlite-do":{"optional":true},"@effect/sql-sqlite-node":{"optional":true},"@effect/sql-sqlite-wasm":{"optional":true},"@simplewebauthn/browser":{"optional":true},"@simplewebauthn/server":{"optional":true},"drizzle-orm":{"optional":true},"effect-cf":{"optional":true},"openid-client":{"optional":true},"tldts":{"optional":true}}}
1
+ {"name":"@yielded/auth","version":"0.1.0-beta.2","dependencies":{"@noble/ciphers":"2.1.1","@noble/hashes":"2.3.0"},"devDependencies":{"@cloudflare/workers-types":"5.20260825.1","@effect/platform-bun":"4.0.0-rc.112","@effect/platform-node":"4.0.0-rc.112","@effect/sql-d1":"4.0.0-rc.112","@effect/sql-libsql":"4.0.0-rc.112","@effect/sql-mysql2":"4.0.0-rc.112","@effect/sql-pg":"4.0.0-rc.112","@effect/sql-pglite":"4.0.0-rc.112","@effect/sql-sqlite-bun":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112","@effect/sql-sqlite-node":"4.0.0-rc.112","@effect/sql-sqlite-wasm":"4.0.0-rc.112","@effect/vitest":"4.0.0-rc.112","@simplewebauthn/browser":"14.0.0","@simplewebauthn/server":"14.0.1","drizzle-orm":"1.0.0-rc.5-ab785fc","effect":"4.0.0-rc.112","effect-cf":"0.40.0","openid-client":"6.8.8","tldts":"7.4.11","typescript":"7.0.2","vite-plus":"0.3.0"},"peerDependencies":{"@effect/sql-d1":">=4.0.0-rc.112","@effect/sql-libsql":">=4.0.0-rc.112","@effect/sql-mysql2":">=4.0.0-rc.112","@effect/sql-pg":">=4.0.0-rc.112","@effect/sql-pglite":">=4.0.0-rc.112","@effect/sql-sqlite-bun":">=4.0.0-rc.112","@effect/sql-sqlite-do":">=4.0.0-rc.112","@effect/sql-sqlite-node":">=4.0.0-rc.112","@effect/sql-sqlite-wasm":">=4.0.0-rc.112","@simplewebauthn/browser":">=14.0.0 <15","@simplewebauthn/server":">=14.0.1 <15","drizzle-orm":">=1.0.0-rc.5-ab785fc","effect":"^4.0.0-rc.112","effect-cf":"^0.40.0","openid-client":">=6.8.8 <7","tldts":">=7.4.11 <8"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./Auth":{"types":"./dist/Auth.d.mts","default":"./dist/Auth.mjs"},"./Drizzle":{"types":"./dist/Drizzle.d.mts","default":"./dist/Drizzle.mjs"},"./DrizzleD1":{"types":"./dist/DrizzleD1.d.mts","default":"./dist/DrizzleD1.mjs"},"./DrizzleLibsql":{"types":"./dist/DrizzleLibsql.d.mts","default":"./dist/DrizzleLibsql.mjs"},"./DrizzleMysql2":{"types":"./dist/DrizzleMysql2.d.mts","default":"./dist/DrizzleMysql2.mjs"},"./DrizzlePglite":{"types":"./dist/DrizzlePglite.d.mts","default":"./dist/DrizzlePglite.mjs"},"./DrizzlePostgres":{"types":"./dist/DrizzlePostgres.d.mts","default":"./dist/DrizzlePostgres.mjs"},"./DrizzleSqliteBun":{"types":"./dist/DrizzleSqliteBun.d.mts","default":"./dist/DrizzleSqliteBun.mjs"},"./DrizzleSqliteDo":{"types":"./dist/DrizzleSqliteDo.d.mts","default":"./dist/DrizzleSqliteDo.mjs"},"./DrizzleSqliteNode":{"types":"./dist/DrizzleSqliteNode.d.mts","default":"./dist/DrizzleSqliteNode.mjs"},"./DrizzleSqliteWasm":{"types":"./dist/DrizzleSqliteWasm.d.mts","default":"./dist/DrizzleSqliteWasm.mjs"},"./Cloudflare":{"types":"./dist/Cloudflare.d.mts","default":"./dist/Cloudflare.mjs"},"./Http":{"types":"./dist/Http.d.mts","default":"./dist/Http.mjs"},"./HttpServer":{"types":"./dist/HttpServer.d.mts","default":"./dist/HttpServer.mjs"},"./OperationHttp":{"types":"./dist/OperationHttp.d.mts","default":"./dist/OperationHttp.mjs"},"./OperationHttpClient":{"types":"./dist/OperationHttpClient.d.mts","default":"./dist/OperationHttpClient.mjs"},"./OperationHttpServer":{"types":"./dist/OperationHttpServer.d.mts","default":"./dist/OperationHttpServer.mjs"},"./Atom":{"types":"./dist/Atom.d.mts","default":"./dist/Atom.mjs"},"./Hooks":{"types":"./dist/Hooks.d.mts","default":"./dist/Hooks.mjs"},"./Identity":{"types":"./dist/Identity.d.mts","default":"./dist/Identity.mjs"},"./OAuth":{"types":"./dist/OAuth.d.mts","default":"./dist/OAuth.mjs"},"./Operations":{"types":"./dist/Operations.d.mts","default":"./dist/Operations.mjs"},"./Rpc":{"types":"./dist/Rpc.d.mts","default":"./dist/Rpc.mjs"},"./Schema":{"types":"./dist/Schema.d.mts","default":"./dist/Schema.mjs"},"./Testing":{"types":"./dist/Testing.d.mts","default":"./dist/Testing.mjs"},"./WebCrypto":{"types":"./dist/WebCrypto.d.mts","default":"./dist/WebCrypto.mjs"},"./Sessions":{"types":"./dist/Sessions.d.mts","default":"./dist/Sessions.mjs"},"./SessionContract":{"types":"./dist/SessionContract.d.mts","default":"./dist/SessionContract.mjs"},"./Proofs":{"types":"./dist/Proofs.d.mts","default":"./dist/Proofs.mjs"},"./Password":{"types":"./dist/Password.d.mts","default":"./dist/Password.mjs"},"./Email":{"types":"./dist/Email.d.mts","default":"./dist/Email.mjs"},"./OpenIdClient":{"types":"./dist/OpenIdClient.d.mts","default":"./dist/OpenIdClient.mjs"},"./OpenIdClientConnected":{"types":"./dist/OpenIdClientConnected.d.mts","default":"./dist/OpenIdClientConnected.mjs"},"./Passkey":{"types":"./dist/Passkey.d.mts","default":"./dist/Passkey.mjs"},"./PasskeyPassword":{"types":"./dist/PasskeyPassword.d.mts","default":"./dist/PasskeyPassword.mjs"},"./PasskeySimpleWebAuthn":{"types":"./dist/PasskeySimpleWebAuthn.d.mts","default":"./dist/PasskeySimpleWebAuthn.mjs"},"./PasskeyBrowser":{"types":"./dist/PasskeyBrowser.d.mts","default":"./dist/PasskeyBrowser.mjs"},"./GitHub":{"types":"./dist/GitHub.d.mts","default":"./dist/GitHub.mjs"},"./AuthSession":{"types":"./dist/AuthSession.d.mts","default":"./dist/AuthSession.mjs"},"./Errors":{"types":"./dist/Errors.d.mts","default":"./dist/Errors.mjs"},"./Workflows":{"types":"./dist/Workflows.d.mts","default":"./dist/Workflows.mjs"},"./PasswordHasher":{"types":"./dist/PasswordHasher.d.mts","default":"./dist/PasswordHasher.mjs"},"./EmailOtp":{"types":"./dist/EmailOtp.d.mts","default":"./dist/EmailOtp.mjs"},"./AuthStore":{"types":"./dist/AuthStore.d.mts","default":"./dist/AuthStore.mjs"},"./PasswordAuth":{"types":"./dist/PasswordAuth.d.mts","default":"./dist/PasswordAuth.mjs"},"./Policy":{"types":"./dist/Policy.d.mts","default":"./dist/Policy.mjs"},"./EmailOtpSender":{"types":"./dist/EmailOtpSender.d.mts","default":"./dist/EmailOtpSender.mjs"},"./AuthTokenCodec":{"types":"./dist/AuthTokenCodec.d.mts","default":"./dist/AuthTokenCodec.mjs"},"./IdentityResolver":{"types":"./dist/IdentityResolver.d.mts","default":"./dist/IdentityResolver.mjs"},"./PasswordCredentialStore":{"types":"./dist/PasswordCredentialStore.d.mts","default":"./dist/PasswordCredentialStore.mjs"},"./PhoneOtp":{"types":"./dist/PhoneOtp.d.mts","default":"./dist/PhoneOtp.mjs"},"./Totp":{"types":"./dist/Totp.d.mts","default":"./dist/Totp.mjs"},"./PasskeyContract":{"types":"./dist/PasskeyContract.d.mts","default":"./dist/PasskeyContract.mjs"},"./TotpContract":{"types":"./dist/TotpContract.d.mts","default":"./dist/TotpContract.mjs"},"./AuthContract":{"types":"./dist/AuthContract.d.mts","default":"./dist/AuthContract.mjs"},"./Client":{"types":"./dist/Client.d.mts","default":"./dist/Client.mjs"}},"description":"Composable authentication, sessions, and identity workflows for Effect.","keywords":["authentication","effect","oauth","passkeys","sessions","typescript"],"homepage":"https://yielded.dev/auth/","bugs":{"url":"https://github.com/yielded-dev/auth/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/yielded-dev/auth.git","directory":"packages/effect-auth"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests","e2e":"bun test/e2e/harness.ts","example:totp":"bun test/fixtures/totp-sqlite-bun.ts"},"peerDependenciesMeta":{"@effect/sql-d1":{"optional":true},"@effect/sql-libsql":{"optional":true},"@effect/sql-mysql2":{"optional":true},"@effect/sql-pg":{"optional":true},"@effect/sql-pglite":{"optional":true},"@effect/sql-sqlite-bun":{"optional":true},"@effect/sql-sqlite-do":{"optional":true},"@effect/sql-sqlite-node":{"optional":true},"@effect/sql-sqlite-wasm":{"optional":true},"@simplewebauthn/browser":{"optional":true},"@simplewebauthn/server":{"optional":true},"drizzle-orm":{"optional":true},"effect-cf":{"optional":true},"openid-client":{"optional":true},"tldts":{"optional":true}}}