authhero 4.43.0 → 4.44.0
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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +57 -57
- package/dist/authhero.d.ts +115 -6
- package/dist/authhero.mjs +9373 -9355
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -1333,6 +1333,11 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1333
1333
|
user_id: z.ZodString;
|
|
1334
1334
|
provider: z.ZodString;
|
|
1335
1335
|
isSocial: z.ZodBoolean;
|
|
1336
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1338
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1340
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1336
1341
|
access_token: z.ZodOptional<z.ZodString>;
|
|
1337
1342
|
access_token_secret: z.ZodOptional<z.ZodString>;
|
|
1338
1343
|
refresh_token: z.ZodOptional<z.ZodString>;
|
|
@@ -1369,6 +1374,11 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1369
1374
|
connection: string;
|
|
1370
1375
|
provider: string;
|
|
1371
1376
|
isSocial: boolean;
|
|
1377
|
+
email?: string | undefined;
|
|
1378
|
+
email_verified?: boolean | undefined;
|
|
1379
|
+
username?: string | undefined;
|
|
1380
|
+
phone_number?: string | undefined;
|
|
1381
|
+
phone_verified?: boolean | undefined;
|
|
1372
1382
|
access_token?: string | undefined;
|
|
1373
1383
|
access_token_secret?: string | undefined;
|
|
1374
1384
|
refresh_token?: string | undefined;
|
|
@@ -1387,6 +1397,11 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1387
1397
|
connection: string;
|
|
1388
1398
|
provider: string;
|
|
1389
1399
|
isSocial: boolean;
|
|
1400
|
+
email?: string | undefined;
|
|
1401
|
+
email_verified?: boolean | undefined;
|
|
1402
|
+
username?: string | undefined;
|
|
1403
|
+
phone_number?: string | undefined;
|
|
1404
|
+
phone_verified?: boolean | undefined;
|
|
1390
1405
|
access_token?: string | undefined;
|
|
1391
1406
|
access_token_secret?: string | undefined;
|
|
1392
1407
|
refresh_token?: string | undefined;
|
|
@@ -1496,6 +1511,11 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1496
1511
|
connection: string;
|
|
1497
1512
|
provider: string;
|
|
1498
1513
|
isSocial: boolean;
|
|
1514
|
+
email?: string | undefined;
|
|
1515
|
+
email_verified?: boolean | undefined;
|
|
1516
|
+
username?: string | undefined;
|
|
1517
|
+
phone_number?: string | undefined;
|
|
1518
|
+
phone_verified?: boolean | undefined;
|
|
1499
1519
|
access_token?: string | undefined;
|
|
1500
1520
|
access_token_secret?: string | undefined;
|
|
1501
1521
|
refresh_token?: string | undefined;
|
|
@@ -1556,6 +1576,11 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1556
1576
|
connection: string;
|
|
1557
1577
|
provider: string;
|
|
1558
1578
|
isSocial: boolean;
|
|
1579
|
+
email?: string | undefined;
|
|
1580
|
+
email_verified?: boolean | undefined;
|
|
1581
|
+
username?: string | undefined;
|
|
1582
|
+
phone_number?: string | undefined;
|
|
1583
|
+
phone_verified?: boolean | undefined;
|
|
1559
1584
|
access_token?: string | undefined;
|
|
1560
1585
|
access_token_secret?: string | undefined;
|
|
1561
1586
|
refresh_token?: string | undefined;
|
|
@@ -1583,6 +1608,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1583
1608
|
user_id: z.ZodString;
|
|
1584
1609
|
provider: z.ZodString;
|
|
1585
1610
|
isSocial: z.ZodBoolean;
|
|
1611
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1613
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1615
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1586
1616
|
access_token: z.ZodOptional<z.ZodString>;
|
|
1587
1617
|
access_token_secret: z.ZodOptional<z.ZodString>;
|
|
1588
1618
|
refresh_token: z.ZodOptional<z.ZodString>;
|
|
@@ -1619,6 +1649,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1619
1649
|
connection: string;
|
|
1620
1650
|
provider: string;
|
|
1621
1651
|
isSocial: boolean;
|
|
1652
|
+
email?: string | undefined;
|
|
1653
|
+
email_verified?: boolean | undefined;
|
|
1654
|
+
username?: string | undefined;
|
|
1655
|
+
phone_number?: string | undefined;
|
|
1656
|
+
phone_verified?: boolean | undefined;
|
|
1622
1657
|
access_token?: string | undefined;
|
|
1623
1658
|
access_token_secret?: string | undefined;
|
|
1624
1659
|
refresh_token?: string | undefined;
|
|
@@ -1637,6 +1672,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1637
1672
|
connection: string;
|
|
1638
1673
|
provider: string;
|
|
1639
1674
|
isSocial: boolean;
|
|
1675
|
+
email?: string | undefined;
|
|
1676
|
+
email_verified?: boolean | undefined;
|
|
1677
|
+
username?: string | undefined;
|
|
1678
|
+
phone_number?: string | undefined;
|
|
1679
|
+
phone_verified?: boolean | undefined;
|
|
1640
1680
|
access_token?: string | undefined;
|
|
1641
1681
|
access_token_secret?: string | undefined;
|
|
1642
1682
|
refresh_token?: string | undefined;
|
|
@@ -1746,6 +1786,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1746
1786
|
connection: string;
|
|
1747
1787
|
provider: string;
|
|
1748
1788
|
isSocial: boolean;
|
|
1789
|
+
email?: string | undefined;
|
|
1790
|
+
email_verified?: boolean | undefined;
|
|
1791
|
+
username?: string | undefined;
|
|
1792
|
+
phone_number?: string | undefined;
|
|
1793
|
+
phone_verified?: boolean | undefined;
|
|
1749
1794
|
access_token?: string | undefined;
|
|
1750
1795
|
access_token_secret?: string | undefined;
|
|
1751
1796
|
refresh_token?: string | undefined;
|
|
@@ -1806,6 +1851,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1806
1851
|
connection: string;
|
|
1807
1852
|
provider: string;
|
|
1808
1853
|
isSocial: boolean;
|
|
1854
|
+
email?: string | undefined;
|
|
1855
|
+
email_verified?: boolean | undefined;
|
|
1856
|
+
username?: string | undefined;
|
|
1857
|
+
phone_number?: string | undefined;
|
|
1858
|
+
phone_verified?: boolean | undefined;
|
|
1809
1859
|
access_token?: string | undefined;
|
|
1810
1860
|
access_token_secret?: string | undefined;
|
|
1811
1861
|
refresh_token?: string | undefined;
|
|
@@ -34690,6 +34740,11 @@ export declare const identitySchema: z.ZodObject<{
|
|
|
34690
34740
|
user_id: z.ZodString;
|
|
34691
34741
|
provider: z.ZodString;
|
|
34692
34742
|
isSocial: z.ZodBoolean;
|
|
34743
|
+
email: z.ZodOptional<z.ZodString>;
|
|
34744
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
34745
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
34746
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
34747
|
+
username: z.ZodOptional<z.ZodString>;
|
|
34693
34748
|
access_token: z.ZodOptional<z.ZodString>;
|
|
34694
34749
|
access_token_secret: z.ZodOptional<z.ZodString>;
|
|
34695
34750
|
refresh_token: z.ZodOptional<z.ZodString>;
|
|
@@ -34726,6 +34781,11 @@ export declare const identitySchema: z.ZodObject<{
|
|
|
34726
34781
|
connection: string;
|
|
34727
34782
|
provider: string;
|
|
34728
34783
|
isSocial: boolean;
|
|
34784
|
+
email?: string | undefined;
|
|
34785
|
+
email_verified?: boolean | undefined;
|
|
34786
|
+
username?: string | undefined;
|
|
34787
|
+
phone_number?: string | undefined;
|
|
34788
|
+
phone_verified?: boolean | undefined;
|
|
34729
34789
|
access_token?: string | undefined;
|
|
34730
34790
|
access_token_secret?: string | undefined;
|
|
34731
34791
|
refresh_token?: string | undefined;
|
|
@@ -34744,6 +34804,11 @@ export declare const identitySchema: z.ZodObject<{
|
|
|
34744
34804
|
connection: string;
|
|
34745
34805
|
provider: string;
|
|
34746
34806
|
isSocial: boolean;
|
|
34807
|
+
email?: string | undefined;
|
|
34808
|
+
email_verified?: boolean | undefined;
|
|
34809
|
+
username?: string | undefined;
|
|
34810
|
+
phone_number?: string | undefined;
|
|
34811
|
+
phone_verified?: boolean | undefined;
|
|
34747
34812
|
access_token?: string | undefined;
|
|
34748
34813
|
access_token_secret?: string | undefined;
|
|
34749
34814
|
refresh_token?: string | undefined;
|
|
@@ -44097,9 +44162,9 @@ export declare const MANAGEMENT_API_SCOPES: {
|
|
|
44097
44162
|
}[];
|
|
44098
44163
|
export interface SeedOptions {
|
|
44099
44164
|
/**
|
|
44100
|
-
* The admin user's
|
|
44165
|
+
* The admin user's username
|
|
44101
44166
|
*/
|
|
44102
|
-
|
|
44167
|
+
adminUsername: string;
|
|
44103
44168
|
/**
|
|
44104
44169
|
* The admin user's password (will be hashed with bcrypt)
|
|
44105
44170
|
*/
|
|
@@ -44147,7 +44212,7 @@ export interface SeedOptions {
|
|
|
44147
44212
|
export interface SeedResult {
|
|
44148
44213
|
tenantId: string;
|
|
44149
44214
|
userId: string;
|
|
44150
|
-
|
|
44215
|
+
username: string;
|
|
44151
44216
|
clientId: string;
|
|
44152
44217
|
clientSecret: string;
|
|
44153
44218
|
}
|
|
@@ -44163,8 +44228,8 @@ export interface SeedResult {
|
|
|
44163
44228
|
* const adapters = createAdapters(db);
|
|
44164
44229
|
*
|
|
44165
44230
|
* await seed(adapters, {
|
|
44166
|
-
*
|
|
44167
|
-
* adminPassword: "
|
|
44231
|
+
* adminUsername: "admin",
|
|
44232
|
+
* adminPassword: "admin",
|
|
44168
44233
|
* });
|
|
44169
44234
|
* ```
|
|
44170
44235
|
*/
|
|
@@ -52817,6 +52882,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
52817
52882
|
connection: string;
|
|
52818
52883
|
provider: string;
|
|
52819
52884
|
isSocial: boolean;
|
|
52885
|
+
email?: string | undefined | undefined;
|
|
52886
|
+
email_verified?: boolean | undefined | undefined;
|
|
52887
|
+
username?: string | undefined | undefined;
|
|
52888
|
+
phone_number?: string | undefined | undefined;
|
|
52889
|
+
phone_verified?: boolean | undefined | undefined;
|
|
52820
52890
|
access_token?: string | undefined | undefined;
|
|
52821
52891
|
access_token_secret?: string | undefined | undefined;
|
|
52822
52892
|
refresh_token?: string | undefined | undefined;
|
|
@@ -52882,6 +52952,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
52882
52952
|
connection: string;
|
|
52883
52953
|
provider: string;
|
|
52884
52954
|
isSocial: boolean;
|
|
52955
|
+
email?: string | undefined | undefined;
|
|
52956
|
+
email_verified?: boolean | undefined | undefined;
|
|
52957
|
+
username?: string | undefined | undefined;
|
|
52958
|
+
phone_number?: string | undefined | undefined;
|
|
52959
|
+
phone_verified?: boolean | undefined | undefined;
|
|
52885
52960
|
access_token?: string | undefined | undefined;
|
|
52886
52961
|
access_token_secret?: string | undefined | undefined;
|
|
52887
52962
|
refresh_token?: string | undefined | undefined;
|
|
@@ -52962,6 +53037,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
52962
53037
|
connection: string;
|
|
52963
53038
|
provider: string;
|
|
52964
53039
|
isSocial: boolean;
|
|
53040
|
+
email?: string | undefined | undefined;
|
|
53041
|
+
email_verified?: boolean | undefined | undefined;
|
|
53042
|
+
username?: string | undefined | undefined;
|
|
53043
|
+
phone_number?: string | undefined | undefined;
|
|
53044
|
+
phone_verified?: boolean | undefined | undefined;
|
|
52965
53045
|
access_token?: string | undefined | undefined;
|
|
52966
53046
|
access_token_secret?: string | undefined | undefined;
|
|
52967
53047
|
refresh_token?: string | undefined | undefined;
|
|
@@ -53094,6 +53174,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
53094
53174
|
connection: string;
|
|
53095
53175
|
provider: string;
|
|
53096
53176
|
isSocial: boolean;
|
|
53177
|
+
email?: string | undefined | undefined;
|
|
53178
|
+
email_verified?: boolean | undefined | undefined;
|
|
53179
|
+
username?: string | undefined | undefined;
|
|
53180
|
+
phone_number?: string | undefined | undefined;
|
|
53181
|
+
phone_verified?: boolean | undefined | undefined;
|
|
53097
53182
|
access_token?: string | undefined | undefined;
|
|
53098
53183
|
access_token_secret?: string | undefined | undefined;
|
|
53099
53184
|
refresh_token?: string | undefined | undefined;
|
|
@@ -53193,10 +53278,29 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
53193
53278
|
};
|
|
53194
53279
|
};
|
|
53195
53280
|
output: {
|
|
53196
|
-
connection: string;
|
|
53197
53281
|
user_id: string;
|
|
53282
|
+
connection: string;
|
|
53198
53283
|
provider: string;
|
|
53199
53284
|
isSocial: boolean;
|
|
53285
|
+
email?: string | undefined | undefined;
|
|
53286
|
+
email_verified?: boolean | undefined | undefined;
|
|
53287
|
+
username?: string | undefined | undefined;
|
|
53288
|
+
phone_number?: string | undefined | undefined;
|
|
53289
|
+
phone_verified?: boolean | undefined | undefined;
|
|
53290
|
+
access_token?: string | undefined | undefined;
|
|
53291
|
+
access_token_secret?: string | undefined | undefined;
|
|
53292
|
+
refresh_token?: string | undefined | undefined;
|
|
53293
|
+
profileData?: {
|
|
53294
|
+
[x: string]: any;
|
|
53295
|
+
name?: string | undefined;
|
|
53296
|
+
email?: string | undefined;
|
|
53297
|
+
given_name?: string | undefined;
|
|
53298
|
+
family_name?: string | undefined;
|
|
53299
|
+
username?: string | undefined;
|
|
53300
|
+
phone_number?: string | undefined;
|
|
53301
|
+
phone_verified?: boolean | undefined;
|
|
53302
|
+
email_verified?: boolean | undefined;
|
|
53303
|
+
} | undefined;
|
|
53200
53304
|
}[];
|
|
53201
53305
|
outputFormat: "json";
|
|
53202
53306
|
status: 201;
|
|
@@ -53262,6 +53366,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
53262
53366
|
connection: string;
|
|
53263
53367
|
provider: string;
|
|
53264
53368
|
isSocial: boolean;
|
|
53369
|
+
email?: string | undefined | undefined;
|
|
53370
|
+
email_verified?: boolean | undefined | undefined;
|
|
53371
|
+
username?: string | undefined | undefined;
|
|
53372
|
+
phone_number?: string | undefined | undefined;
|
|
53373
|
+
phone_verified?: boolean | undefined | undefined;
|
|
53265
53374
|
access_token?: string | undefined | undefined;
|
|
53266
53375
|
access_token_secret?: string | undefined | undefined;
|
|
53267
53376
|
refresh_token?: string | undefined | undefined;
|