authhero 8.14.0 → 8.14.1
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 +6 -5
- package/dist/authhero.d.ts +224 -224
- package/dist/authhero.mjs +42 -26
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +224 -224
- package/dist/types/routes/auth-api/authorize.d.ts +14 -14
- package/dist/types/routes/auth-api/index.d.ts +50 -50
- package/package.json +3 -3
|
@@ -71,9 +71,17 @@ export declare const authorizeRoutes: OpenAPIHono<{
|
|
|
71
71
|
request_uri?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
output: {
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
output: string | {
|
|
75
|
+
access_token: string;
|
|
76
|
+
token_type: string;
|
|
77
|
+
expires_in: number;
|
|
78
|
+
id_token?: string | undefined;
|
|
79
|
+
scope?: string | undefined;
|
|
80
|
+
state?: string | undefined;
|
|
81
|
+
refresh_token?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
outputFormat: "json";
|
|
84
|
+
status: 200;
|
|
77
85
|
} | {
|
|
78
86
|
input: {
|
|
79
87
|
query: {
|
|
@@ -105,17 +113,9 @@ export declare const authorizeRoutes: OpenAPIHono<{
|
|
|
105
113
|
request_uri?: string | undefined;
|
|
106
114
|
};
|
|
107
115
|
};
|
|
108
|
-
output:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
expires_in: number;
|
|
112
|
-
id_token?: string | undefined;
|
|
113
|
-
scope?: string | undefined;
|
|
114
|
-
state?: string | undefined;
|
|
115
|
-
refresh_token?: string | undefined;
|
|
116
|
-
};
|
|
117
|
-
outputFormat: "json";
|
|
118
|
-
status: 200;
|
|
116
|
+
output: {};
|
|
117
|
+
outputFormat: string;
|
|
118
|
+
status: 302;
|
|
119
119
|
} | {
|
|
120
120
|
input: {
|
|
121
121
|
query: {
|
|
@@ -301,7 +301,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
301
301
|
scope?: string | undefined;
|
|
302
302
|
grant_types?: string[] | undefined;
|
|
303
303
|
response_types?: string[] | undefined;
|
|
304
|
-
token_endpoint_auth_method?: "none" | "
|
|
304
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
305
305
|
jwks_uri?: string | undefined;
|
|
306
306
|
jwks?: Record<string, unknown> | undefined;
|
|
307
307
|
software_id?: string | undefined;
|
|
@@ -390,7 +390,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
390
390
|
scope?: string | undefined;
|
|
391
391
|
grant_types?: string[] | undefined;
|
|
392
392
|
response_types?: string[] | undefined;
|
|
393
|
-
token_endpoint_auth_method?: "none" | "
|
|
393
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
394
394
|
jwks_uri?: string | undefined;
|
|
395
395
|
jwks?: Record<string, unknown> | undefined;
|
|
396
396
|
software_id?: string | undefined;
|
|
@@ -447,7 +447,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
447
447
|
client_id: string;
|
|
448
448
|
redirect_url?: string | undefined;
|
|
449
449
|
login_hint?: string | undefined;
|
|
450
|
-
screen_hint?: "
|
|
450
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
453
|
output: {};
|
|
@@ -459,7 +459,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
459
459
|
client_id: string;
|
|
460
460
|
redirect_url?: string | undefined;
|
|
461
461
|
login_hint?: string | undefined;
|
|
462
|
-
screen_hint?: "
|
|
462
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
463
463
|
};
|
|
464
464
|
};
|
|
465
465
|
output: {
|
|
@@ -536,9 +536,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
536
536
|
request_uri?: string | undefined;
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
output: {
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
output: string | {
|
|
540
|
+
access_token: string;
|
|
541
|
+
token_type: string;
|
|
542
|
+
expires_in: number;
|
|
543
|
+
id_token?: string | undefined;
|
|
544
|
+
scope?: string | undefined;
|
|
545
|
+
state?: string | undefined;
|
|
546
|
+
refresh_token?: string | undefined;
|
|
547
|
+
};
|
|
548
|
+
outputFormat: "json";
|
|
549
|
+
status: 200;
|
|
542
550
|
} | {
|
|
543
551
|
input: {
|
|
544
552
|
query: {
|
|
@@ -570,17 +578,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
570
578
|
request_uri?: string | undefined;
|
|
571
579
|
};
|
|
572
580
|
};
|
|
573
|
-
output:
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
expires_in: number;
|
|
577
|
-
id_token?: string | undefined;
|
|
578
|
-
scope?: string | undefined;
|
|
579
|
-
state?: string | undefined;
|
|
580
|
-
refresh_token?: string | undefined;
|
|
581
|
-
};
|
|
582
|
-
outputFormat: "json";
|
|
583
|
-
status: 200;
|
|
581
|
+
output: {};
|
|
582
|
+
outputFormat: string;
|
|
583
|
+
status: 302;
|
|
584
584
|
} | {
|
|
585
585
|
input: {
|
|
586
586
|
query: {
|
|
@@ -736,22 +736,21 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
736
736
|
email: string;
|
|
737
737
|
send: "code" | "link";
|
|
738
738
|
authParams: {
|
|
739
|
-
|
|
739
|
+
vendor_id?: string | undefined;
|
|
740
|
+
redirect_uri?: string | undefined;
|
|
741
|
+
scope?: string | undefined;
|
|
740
742
|
state?: string | undefined;
|
|
741
|
-
|
|
742
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
743
|
+
prompt?: string | undefined;
|
|
743
744
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
744
|
-
|
|
745
|
-
|
|
745
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
746
|
+
audience?: string | undefined;
|
|
746
747
|
nonce?: string | undefined;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
prompt?: string | undefined;
|
|
748
|
+
max_age?: number | undefined;
|
|
749
|
+
acr_values?: string | undefined;
|
|
750
750
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
751
751
|
code_challenge?: string | undefined;
|
|
752
|
+
organization?: string | undefined;
|
|
752
753
|
ui_locales?: string | undefined;
|
|
753
|
-
max_age?: number | undefined;
|
|
754
|
-
acr_values?: string | undefined;
|
|
755
754
|
claims?: {
|
|
756
755
|
userinfo?: Record<string, {
|
|
757
756
|
essential?: boolean | undefined;
|
|
@@ -764,7 +763,8 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
764
763
|
values?: unknown[] | undefined;
|
|
765
764
|
} | null> | undefined;
|
|
766
765
|
} | undefined;
|
|
767
|
-
|
|
766
|
+
act_as?: string | undefined;
|
|
767
|
+
username?: string | undefined;
|
|
768
768
|
};
|
|
769
769
|
} | {
|
|
770
770
|
client_id: string;
|
|
@@ -772,22 +772,21 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
772
772
|
phone_number: string;
|
|
773
773
|
send: "code" | "link";
|
|
774
774
|
authParams: {
|
|
775
|
-
|
|
775
|
+
vendor_id?: string | undefined;
|
|
776
|
+
redirect_uri?: string | undefined;
|
|
777
|
+
scope?: string | undefined;
|
|
776
778
|
state?: string | undefined;
|
|
777
|
-
|
|
778
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
779
|
+
prompt?: string | undefined;
|
|
779
780
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
780
|
-
|
|
781
|
-
|
|
781
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
782
|
+
audience?: string | undefined;
|
|
782
783
|
nonce?: string | undefined;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
prompt?: string | undefined;
|
|
784
|
+
max_age?: number | undefined;
|
|
785
|
+
acr_values?: string | undefined;
|
|
786
786
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
787
787
|
code_challenge?: string | undefined;
|
|
788
|
+
organization?: string | undefined;
|
|
788
789
|
ui_locales?: string | undefined;
|
|
789
|
-
max_age?: number | undefined;
|
|
790
|
-
acr_values?: string | undefined;
|
|
791
790
|
claims?: {
|
|
792
791
|
userinfo?: Record<string, {
|
|
793
792
|
essential?: boolean | undefined;
|
|
@@ -800,7 +799,8 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
800
799
|
values?: unknown[] | undefined;
|
|
801
800
|
} | null> | undefined;
|
|
802
801
|
} | undefined;
|
|
803
|
-
|
|
802
|
+
act_as?: string | undefined;
|
|
803
|
+
username?: string | undefined;
|
|
804
804
|
};
|
|
805
805
|
};
|
|
806
806
|
};
|
|
@@ -916,14 +916,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
916
916
|
input: {
|
|
917
917
|
form: {
|
|
918
918
|
token: string;
|
|
919
|
-
token_type_hint?: "
|
|
919
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
920
920
|
client_id?: string | undefined;
|
|
921
921
|
client_secret?: string | undefined;
|
|
922
922
|
};
|
|
923
923
|
} & {
|
|
924
924
|
json: {
|
|
925
925
|
token: string;
|
|
926
|
-
token_type_hint?: "
|
|
926
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
927
927
|
client_id?: string | undefined;
|
|
928
928
|
client_secret?: string | undefined;
|
|
929
929
|
};
|
|
@@ -935,14 +935,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
935
935
|
input: {
|
|
936
936
|
form: {
|
|
937
937
|
token: string;
|
|
938
|
-
token_type_hint?: "
|
|
938
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
939
939
|
client_id?: string | undefined;
|
|
940
940
|
client_secret?: string | undefined;
|
|
941
941
|
};
|
|
942
942
|
} & {
|
|
943
943
|
json: {
|
|
944
944
|
token: string;
|
|
945
|
-
token_type_hint?: "
|
|
945
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
946
946
|
client_id?: string | undefined;
|
|
947
947
|
client_secret?: string | undefined;
|
|
948
948
|
};
|
|
@@ -957,14 +957,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
957
957
|
input: {
|
|
958
958
|
form: {
|
|
959
959
|
token: string;
|
|
960
|
-
token_type_hint?: "
|
|
960
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
961
961
|
client_id?: string | undefined;
|
|
962
962
|
client_secret?: string | undefined;
|
|
963
963
|
};
|
|
964
964
|
} & {
|
|
965
965
|
json: {
|
|
966
966
|
token: string;
|
|
967
|
-
token_type_hint?: "
|
|
967
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
968
968
|
client_id?: string | undefined;
|
|
969
969
|
client_secret?: string | undefined;
|
|
970
970
|
};
|
|
@@ -1388,7 +1388,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1388
1388
|
error_description?: string | undefined;
|
|
1389
1389
|
};
|
|
1390
1390
|
outputFormat: "json";
|
|
1391
|
-
status:
|
|
1391
|
+
status: 403;
|
|
1392
1392
|
} | {
|
|
1393
1393
|
input: {
|
|
1394
1394
|
form: {
|
|
@@ -1490,7 +1490,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1490
1490
|
error_description?: string | undefined;
|
|
1491
1491
|
};
|
|
1492
1492
|
outputFormat: "json";
|
|
1493
|
-
status:
|
|
1493
|
+
status: 401;
|
|
1494
1494
|
};
|
|
1495
1495
|
};
|
|
1496
1496
|
}, "/oauth/token"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -1689,7 +1689,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1689
1689
|
};
|
|
1690
1690
|
output: {};
|
|
1691
1691
|
outputFormat: string;
|
|
1692
|
-
status:
|
|
1692
|
+
status: 302;
|
|
1693
1693
|
} | {
|
|
1694
1694
|
input: {
|
|
1695
1695
|
query: {
|
|
@@ -1703,7 +1703,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1703
1703
|
};
|
|
1704
1704
|
output: {};
|
|
1705
1705
|
outputFormat: string;
|
|
1706
|
-
status:
|
|
1706
|
+
status: 200;
|
|
1707
1707
|
} | {
|
|
1708
1708
|
input: {
|
|
1709
1709
|
query: {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "8.14.
|
|
14
|
+
"version": "8.14.1",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/
|
|
67
|
-
"@authhero/
|
|
66
|
+
"@authhero/widget": "0.34.5",
|
|
67
|
+
"@authhero/kysely-adapter": "11.12.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.0",
|