authhero 0.13.0 → 0.13.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/dist/authhero.cjs +1 -1
- package/dist/authhero.d.ts +35 -23
- package/dist/authhero.mjs +5 -1
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1189,18 +1189,20 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1189
1189
|
}, {
|
|
1190
1190
|
id: z.ZodOptional<z.ZodString>;
|
|
1191
1191
|
name: z.ZodString;
|
|
1192
|
-
strategy: z.
|
|
1192
|
+
strategy: z.ZodEnum<[
|
|
1193
1193
|
"google-oauth2",
|
|
1194
1194
|
"facebook",
|
|
1195
1195
|
"vipps",
|
|
1196
1196
|
"freja",
|
|
1197
1197
|
"apple",
|
|
1198
1198
|
"email",
|
|
1199
|
+
"auth0",
|
|
1200
|
+
"authhero",
|
|
1199
1201
|
"Username-Password-Authentication",
|
|
1200
1202
|
"oidc",
|
|
1201
1203
|
"oauth2",
|
|
1202
1204
|
"custom"
|
|
1203
|
-
]
|
|
1205
|
+
]>;
|
|
1204
1206
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1205
1207
|
kid: z.ZodOptional<z.ZodString>;
|
|
1206
1208
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1251,6 +1253,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1251
1253
|
created_at: string;
|
|
1252
1254
|
updated_at: string;
|
|
1253
1255
|
name: string;
|
|
1256
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1254
1257
|
options?: {
|
|
1255
1258
|
issuer?: string | undefined;
|
|
1256
1259
|
client_secret?: string | undefined;
|
|
@@ -1269,12 +1272,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1269
1272
|
id?: string | undefined;
|
|
1270
1273
|
response_type?: AuthorizationResponseType | undefined;
|
|
1271
1274
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1272
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1273
1275
|
enabled_clients?: string[] | undefined;
|
|
1274
1276
|
}, {
|
|
1275
1277
|
created_at: string;
|
|
1276
1278
|
updated_at: string;
|
|
1277
1279
|
name: string;
|
|
1280
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1278
1281
|
options?: {
|
|
1279
1282
|
issuer?: string | undefined;
|
|
1280
1283
|
client_secret?: string | undefined;
|
|
@@ -1293,7 +1296,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1293
1296
|
id?: string | undefined;
|
|
1294
1297
|
response_type?: AuthorizationResponseType | undefined;
|
|
1295
1298
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1296
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1297
1299
|
enabled_clients?: string[] | undefined;
|
|
1298
1300
|
}>, "many">;
|
|
1299
1301
|
id: z.ZodString;
|
|
@@ -1435,6 +1437,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1435
1437
|
created_at: string;
|
|
1436
1438
|
updated_at: string;
|
|
1437
1439
|
name: string;
|
|
1440
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1438
1441
|
options?: {
|
|
1439
1442
|
issuer?: string | undefined;
|
|
1440
1443
|
client_secret?: string | undefined;
|
|
@@ -1453,7 +1456,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1453
1456
|
id?: string | undefined;
|
|
1454
1457
|
response_type?: AuthorizationResponseType | undefined;
|
|
1455
1458
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1456
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1457
1459
|
enabled_clients?: string[] | undefined;
|
|
1458
1460
|
}[];
|
|
1459
1461
|
callbacks?: string[] | undefined;
|
|
@@ -1513,6 +1515,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1513
1515
|
created_at: string;
|
|
1514
1516
|
updated_at: string;
|
|
1515
1517
|
name: string;
|
|
1518
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1516
1519
|
options?: {
|
|
1517
1520
|
issuer?: string | undefined;
|
|
1518
1521
|
client_secret?: string | undefined;
|
|
@@ -1531,7 +1534,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1531
1534
|
id?: string | undefined;
|
|
1532
1535
|
response_type?: AuthorizationResponseType | undefined;
|
|
1533
1536
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1534
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1535
1537
|
enabled_clients?: string[] | undefined;
|
|
1536
1538
|
}[];
|
|
1537
1539
|
callbacks?: string[] | undefined;
|
|
@@ -1585,6 +1587,7 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1585
1587
|
"oauth2_state",
|
|
1586
1588
|
"ticket"
|
|
1587
1589
|
]>;
|
|
1590
|
+
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1588
1591
|
expires_at: z.ZodString;
|
|
1589
1592
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1590
1593
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1595,6 +1598,7 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1595
1598
|
expires_at: string;
|
|
1596
1599
|
user_id?: string | undefined;
|
|
1597
1600
|
connection_id?: string | undefined;
|
|
1601
|
+
code_verifier?: string | undefined;
|
|
1598
1602
|
used_at?: string | undefined;
|
|
1599
1603
|
}, {
|
|
1600
1604
|
code_id: string;
|
|
@@ -1603,6 +1607,7 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1603
1607
|
expires_at: string;
|
|
1604
1608
|
user_id?: string | undefined;
|
|
1605
1609
|
connection_id?: string | undefined;
|
|
1610
|
+
code_verifier?: string | undefined;
|
|
1606
1611
|
used_at?: string | undefined;
|
|
1607
1612
|
}>;
|
|
1608
1613
|
export type CodeInsert = z.infer<typeof codeInsertSchema>;
|
|
@@ -1619,6 +1624,7 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1619
1624
|
"oauth2_state",
|
|
1620
1625
|
"ticket"
|
|
1621
1626
|
]>;
|
|
1627
|
+
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1622
1628
|
expires_at: z.ZodString;
|
|
1623
1629
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1624
1630
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1630,6 +1636,7 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1630
1636
|
expires_at: string;
|
|
1631
1637
|
user_id?: string | undefined;
|
|
1632
1638
|
connection_id?: string | undefined;
|
|
1639
|
+
code_verifier?: string | undefined;
|
|
1633
1640
|
used_at?: string | undefined;
|
|
1634
1641
|
}, {
|
|
1635
1642
|
created_at: string;
|
|
@@ -1639,24 +1646,27 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1639
1646
|
expires_at: string;
|
|
1640
1647
|
user_id?: string | undefined;
|
|
1641
1648
|
connection_id?: string | undefined;
|
|
1649
|
+
code_verifier?: string | undefined;
|
|
1642
1650
|
used_at?: string | undefined;
|
|
1643
1651
|
}>;
|
|
1644
1652
|
export type Code = z.infer<typeof codeSchema>;
|
|
1645
1653
|
export declare const connectionInsertSchema: z.ZodObject<{
|
|
1646
1654
|
id: z.ZodOptional<z.ZodString>;
|
|
1647
1655
|
name: z.ZodString;
|
|
1648
|
-
strategy: z.
|
|
1656
|
+
strategy: z.ZodEnum<[
|
|
1649
1657
|
"google-oauth2",
|
|
1650
1658
|
"facebook",
|
|
1651
1659
|
"vipps",
|
|
1652
1660
|
"freja",
|
|
1653
1661
|
"apple",
|
|
1654
1662
|
"email",
|
|
1663
|
+
"auth0",
|
|
1664
|
+
"authhero",
|
|
1655
1665
|
"Username-Password-Authentication",
|
|
1656
1666
|
"oidc",
|
|
1657
1667
|
"oauth2",
|
|
1658
1668
|
"custom"
|
|
1659
|
-
]
|
|
1669
|
+
]>;
|
|
1660
1670
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1661
1671
|
kid: z.ZodOptional<z.ZodString>;
|
|
1662
1672
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1705,6 +1715,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1705
1715
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1706
1716
|
}, "strip", z.ZodTypeAny, {
|
|
1707
1717
|
name: string;
|
|
1718
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1708
1719
|
options?: {
|
|
1709
1720
|
issuer?: string | undefined;
|
|
1710
1721
|
client_secret?: string | undefined;
|
|
@@ -1723,10 +1734,10 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1723
1734
|
id?: string | undefined;
|
|
1724
1735
|
response_type?: AuthorizationResponseType | undefined;
|
|
1725
1736
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1726
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1727
1737
|
enabled_clients?: string[] | undefined;
|
|
1728
1738
|
}, {
|
|
1729
1739
|
name: string;
|
|
1740
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1730
1741
|
options?: {
|
|
1731
1742
|
issuer?: string | undefined;
|
|
1732
1743
|
client_secret?: string | undefined;
|
|
@@ -1745,7 +1756,6 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1745
1756
|
id?: string | undefined;
|
|
1746
1757
|
response_type?: AuthorizationResponseType | undefined;
|
|
1747
1758
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1748
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1749
1759
|
enabled_clients?: string[] | undefined;
|
|
1750
1760
|
}>;
|
|
1751
1761
|
export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
|
|
@@ -1756,18 +1766,20 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1756
1766
|
}, {
|
|
1757
1767
|
id: z.ZodOptional<z.ZodString>;
|
|
1758
1768
|
name: z.ZodString;
|
|
1759
|
-
strategy: z.
|
|
1769
|
+
strategy: z.ZodEnum<[
|
|
1760
1770
|
"google-oauth2",
|
|
1761
1771
|
"facebook",
|
|
1762
1772
|
"vipps",
|
|
1763
1773
|
"freja",
|
|
1764
1774
|
"apple",
|
|
1765
1775
|
"email",
|
|
1776
|
+
"auth0",
|
|
1777
|
+
"authhero",
|
|
1766
1778
|
"Username-Password-Authentication",
|
|
1767
1779
|
"oidc",
|
|
1768
1780
|
"oauth2",
|
|
1769
1781
|
"custom"
|
|
1770
|
-
]
|
|
1782
|
+
]>;
|
|
1771
1783
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1772
1784
|
kid: z.ZodOptional<z.ZodString>;
|
|
1773
1785
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1818,6 +1830,7 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1818
1830
|
created_at: string;
|
|
1819
1831
|
updated_at: string;
|
|
1820
1832
|
name: string;
|
|
1833
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1821
1834
|
options?: {
|
|
1822
1835
|
issuer?: string | undefined;
|
|
1823
1836
|
client_secret?: string | undefined;
|
|
@@ -1836,12 +1849,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1836
1849
|
id?: string | undefined;
|
|
1837
1850
|
response_type?: AuthorizationResponseType | undefined;
|
|
1838
1851
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1839
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1840
1852
|
enabled_clients?: string[] | undefined;
|
|
1841
1853
|
}, {
|
|
1842
1854
|
created_at: string;
|
|
1843
1855
|
updated_at: string;
|
|
1844
1856
|
name: string;
|
|
1857
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1845
1858
|
options?: {
|
|
1846
1859
|
issuer?: string | undefined;
|
|
1847
1860
|
client_secret?: string | undefined;
|
|
@@ -1860,7 +1873,6 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1860
1873
|
id?: string | undefined;
|
|
1861
1874
|
response_type?: AuthorizationResponseType | undefined;
|
|
1862
1875
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1863
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1864
1876
|
enabled_clients?: string[] | undefined;
|
|
1865
1877
|
}>;
|
|
1866
1878
|
export type Connection = z.infer<typeof connectionSchema>;
|
|
@@ -2986,14 +2998,14 @@ export declare const pkceAuthorizationCodeGrantTypeParamsSchema: z.ZodObject<{
|
|
|
2986
2998
|
}, "strip", z.ZodTypeAny, {
|
|
2987
2999
|
code: string;
|
|
2988
3000
|
redirect_uri: string;
|
|
2989
|
-
grant_type: GrantType.AuthorizationCode;
|
|
2990
3001
|
code_verifier: string;
|
|
3002
|
+
grant_type: GrantType.AuthorizationCode;
|
|
2991
3003
|
client_id?: string | undefined;
|
|
2992
3004
|
}, {
|
|
2993
3005
|
code: string;
|
|
2994
3006
|
redirect_uri: string;
|
|
2995
|
-
grant_type: GrantType;
|
|
2996
3007
|
code_verifier: string;
|
|
3008
|
+
grant_type: GrantType;
|
|
2997
3009
|
client_id?: string | undefined;
|
|
2998
3010
|
}>;
|
|
2999
3011
|
export type PKCEAuthorizationCodeGrantTypeParams = z.infer<typeof pkceAuthorizationCodeGrantTypeParamsSchema>;
|
|
@@ -4442,6 +4454,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4442
4454
|
created_at: string;
|
|
4443
4455
|
updated_at: string;
|
|
4444
4456
|
name: string;
|
|
4457
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
4445
4458
|
options?: {
|
|
4446
4459
|
issuer?: string | undefined;
|
|
4447
4460
|
client_secret?: string | undefined;
|
|
@@ -4460,7 +4473,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4460
4473
|
id?: string | undefined;
|
|
4461
4474
|
response_type?: AuthorizationResponseType | undefined;
|
|
4462
4475
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4463
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
4464
4476
|
enabled_clients?: string[] | undefined;
|
|
4465
4477
|
}[] | {
|
|
4466
4478
|
start: number;
|
|
@@ -4470,6 +4482,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4470
4482
|
created_at: string;
|
|
4471
4483
|
updated_at: string;
|
|
4472
4484
|
name: string;
|
|
4485
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
4473
4486
|
options?: {
|
|
4474
4487
|
issuer?: string | undefined;
|
|
4475
4488
|
client_secret?: string | undefined;
|
|
@@ -4488,7 +4501,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4488
4501
|
id?: string | undefined;
|
|
4489
4502
|
response_type?: AuthorizationResponseType | undefined;
|
|
4490
4503
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4491
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
4492
4504
|
enabled_clients?: string[] | undefined;
|
|
4493
4505
|
}[];
|
|
4494
4506
|
};
|
|
@@ -4512,6 +4524,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4512
4524
|
created_at: string;
|
|
4513
4525
|
updated_at: string;
|
|
4514
4526
|
name: string;
|
|
4527
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
4515
4528
|
options?: {
|
|
4516
4529
|
issuer?: string | undefined;
|
|
4517
4530
|
client_secret?: string | undefined;
|
|
@@ -4530,7 +4543,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4530
4543
|
id?: string | undefined;
|
|
4531
4544
|
response_type?: AuthorizationResponseType | undefined;
|
|
4532
4545
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4533
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
4534
4546
|
enabled_clients?: string[] | undefined;
|
|
4535
4547
|
};
|
|
4536
4548
|
outputFormat: "json" | "text";
|
|
@@ -4584,7 +4596,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4584
4596
|
} | undefined;
|
|
4585
4597
|
name?: string | undefined;
|
|
4586
4598
|
id?: string | undefined;
|
|
4587
|
-
strategy?: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "oidc" | "oauth2" | undefined;
|
|
4599
|
+
strategy?: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "oidc" | "oauth2" | undefined;
|
|
4588
4600
|
response_type?: AuthorizationResponseType | undefined;
|
|
4589
4601
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4590
4602
|
enabled_clients?: string[] | undefined;
|
|
@@ -4594,6 +4606,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4594
4606
|
created_at: string;
|
|
4595
4607
|
updated_at: string;
|
|
4596
4608
|
name: string;
|
|
4609
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
4597
4610
|
options?: {
|
|
4598
4611
|
issuer?: string | undefined;
|
|
4599
4612
|
client_secret?: string | undefined;
|
|
@@ -4612,7 +4625,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4612
4625
|
id?: string | undefined;
|
|
4613
4626
|
response_type?: AuthorizationResponseType | undefined;
|
|
4614
4627
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4615
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
4616
4628
|
enabled_clients?: string[] | undefined;
|
|
4617
4629
|
};
|
|
4618
4630
|
outputFormat: "json" | "text";
|
|
@@ -4629,6 +4641,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4629
4641
|
} & {
|
|
4630
4642
|
json: {
|
|
4631
4643
|
name: string;
|
|
4644
|
+
strategy: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "oidc" | "oauth2";
|
|
4632
4645
|
options?: {
|
|
4633
4646
|
issuer?: string | undefined;
|
|
4634
4647
|
client_secret?: string | undefined;
|
|
@@ -4645,7 +4658,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4645
4658
|
discovery_url?: string | undefined;
|
|
4646
4659
|
} | undefined;
|
|
4647
4660
|
id?: string | undefined;
|
|
4648
|
-
strategy?: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "oidc" | "oauth2" | undefined;
|
|
4649
4661
|
response_type?: AuthorizationResponseType | undefined;
|
|
4650
4662
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4651
4663
|
enabled_clients?: string[] | undefined;
|
|
@@ -4655,6 +4667,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4655
4667
|
created_at: string;
|
|
4656
4668
|
updated_at: string;
|
|
4657
4669
|
name: string;
|
|
4670
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
4658
4671
|
options?: {
|
|
4659
4672
|
issuer?: string | undefined;
|
|
4660
4673
|
client_secret?: string | undefined;
|
|
@@ -4673,7 +4686,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4673
4686
|
id?: string | undefined;
|
|
4674
4687
|
response_type?: AuthorizationResponseType | undefined;
|
|
4675
4688
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
4676
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
4677
4689
|
enabled_clients?: string[] | undefined;
|
|
4678
4690
|
};
|
|
4679
4691
|
outputFormat: "json" | "text";
|
package/dist/authhero.mjs
CHANGED
|
@@ -8069,11 +8069,14 @@ const e_ = d.object({
|
|
|
8069
8069
|
"freja",
|
|
8070
8070
|
"apple",
|
|
8071
8071
|
"email",
|
|
8072
|
+
"auth0",
|
|
8073
|
+
"authhero",
|
|
8074
|
+
// This is incorrect as strategy. Remove once data is migrated
|
|
8072
8075
|
"Username-Password-Authentication",
|
|
8073
8076
|
"oidc",
|
|
8074
8077
|
"oauth2",
|
|
8075
8078
|
"custom"
|
|
8076
|
-
])
|
|
8079
|
+
]),
|
|
8077
8080
|
options: d.object({
|
|
8078
8081
|
kid: d.string().optional(),
|
|
8079
8082
|
team_id: d.string().optional(),
|
|
@@ -8159,6 +8162,7 @@ const r_ = d.enum([
|
|
|
8159
8162
|
description: "The connection that the code is connected to"
|
|
8160
8163
|
}),
|
|
8161
8164
|
code_type: r_,
|
|
8165
|
+
code_verifier: d.string().optional(),
|
|
8162
8166
|
expires_at: d.string(),
|
|
8163
8167
|
used_at: d.string().optional(),
|
|
8164
8168
|
user_id: d.string().optional()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authhero",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"vite": "^5.4.11",
|
|
25
25
|
"vite-plugin-dts": "^4.3.0",
|
|
26
26
|
"vitest": "^2.1.5",
|
|
27
|
-
"@authhero/kysely-adapter": "^0.
|
|
27
|
+
"@authhero/kysely-adapter": "^0.21.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@peculiar/x509": "^1.12.3",
|
|
31
31
|
"bcrypt": "^5.1.1",
|
|
32
32
|
"bcryptjs": "^2.4.3",
|
|
33
33
|
"oslo": "^1.2.1",
|
|
34
|
-
"@authhero/adapter-interfaces": "^0.
|
|
34
|
+
"@authhero/adapter-interfaces": "^0.24.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@hono/zod-openapi": "^0.18.0",
|