@xylex-group/athena 2.14.0 → 3.0.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 +109 -1402
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.ts +1 -1
- package/dist/{athena-auth-url-oLux_57a.d.cts → athena-request-headers-C7Jy-c_D.d.ts} +85 -1
- package/dist/{athena-auth-url-oLux_57a.d.ts → athena-request-headers-DujFFyMU.d.cts} +85 -1
- package/dist/billing.cjs +1311 -0
- package/dist/billing.cjs.map +1 -0
- package/dist/billing.d.cts +270 -0
- package/dist/billing.d.ts +270 -0
- package/dist/billing.js +1306 -0
- package/dist/billing.js.map +1 -0
- package/dist/browser.cjs +9695 -9243
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +11 -10
- package/dist/browser.d.ts +11 -10
- package/dist/browser.js +9692 -9241
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +8137 -7286
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -4
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +8137 -7286
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +9718 -9260
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +9711 -9258
- package/dist/index.js.map +1 -1
- package/dist/{model-form-DcH3R7WD.d.ts → model-form-Dh0sisdL.d.ts} +2 -2
- package/dist/{model-form-BE1_Bmdd.d.cts → model-form-oOAJUVd4.d.cts} +2 -2
- package/dist/{module-DFGZXCtt.d.cts → module-CB25egcO.d.cts} +18 -52
- package/dist/module-C_ab-MM1.d.cts +360 -0
- package/dist/module-C_ab-MM1.d.ts +360 -0
- package/dist/{module-Ca3_OQqR.d.ts → module-CkUM6v58.d.ts} +18 -52
- package/dist/next/client.cjs +9116 -8468
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +24 -25
- package/dist/next/client.d.ts +24 -25
- package/dist/next/client.js +9088 -8469
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +8932 -7776
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +62 -43
- package/dist/next/server.d.ts +62 -43
- package/dist/next/server.js +8873 -7777
- package/dist/next/server.js.map +1 -1
- package/dist/{payload-BbSCmILD.d.ts → payload-DWI1rw-e.d.cts} +1 -35
- package/dist/{payload-zXIwKTQf.d.cts → payload-DWI1rw-e.d.ts} +1 -35
- package/dist/{pipeline-DqwehoQV.d.ts → pipeline-B8aN2EHe.d.ts} +1 -1
- package/dist/{pipeline-CwQoD5G9.d.cts → pipeline-D4W-Cc-A.d.cts} +1 -1
- package/dist/proxy-request-headers-DGxdoyA0.d.cts +59 -0
- package/dist/proxy-request-headers-m4D2Tduy.d.ts +59 -0
- package/dist/react.cjs +118 -17
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +46 -16
- package/dist/react.d.ts +46 -16
- package/dist/react.js +117 -18
- package/dist/react.js.map +1 -1
- package/dist/social-providers.cjs +24 -20
- package/dist/social-providers.cjs.map +1 -1
- package/dist/social-providers.d.cts +96 -139
- package/dist/social-providers.d.ts +96 -139
- package/dist/social-providers.js +24 -20
- package/dist/social-providers.js.map +1 -1
- package/dist/{types-eAKAh71s.d.cts → types-AOY-GLu8.d.cts} +27 -54
- package/dist/{types-eAKAh71s.d.ts → types-AOY-GLu8.d.ts} +27 -54
- package/dist/{types-CD6K05JQ.d.ts → types-B75PdABb.d.ts} +3 -3
- package/dist/{types-dHnjluBC.d.cts → types-BBm-kEBL.d.cts} +2 -2
- package/dist/{types-C1swabT5.d.ts → types-BaAMXCqK.d.ts} +2 -2
- package/dist/{types-YQUR7wu0.d.cts → types-Bltx6iL6.d.cts} +3 -5
- package/dist/{types-YQUR7wu0.d.ts → types-Bltx6iL6.d.ts} +3 -5
- package/dist/{types-6H575ITc.d.cts → types-CgCv5o6R.d.cts} +3 -3
- package/dist/utils.cjs +7 -8
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +4 -145
- package/dist/utils.d.ts +4 -145
- package/dist/utils.js +7 -8
- package/dist/utils.js.map +1 -1
- package/dist/{client-wU2J9yqb.d.cts → v3-client-CWfZHcKL.d.cts} +402 -521
- package/dist/{client-uthENhaf.d.ts → v3-client-DZp2NEhK.d.ts} +402 -521
- package/package.json +15 -3
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as url from 'url';
|
|
2
1
|
import * as z from 'zod';
|
|
3
|
-
export {
|
|
2
|
+
export { aO as AthenaAuthSocialProviderExtensions, aP as AuthOAuthProvider, aQ as AuthSocialProvider, aR as AuthSocialProviderBuiltin } from './types-AOY-GLu8.cjs';
|
|
4
3
|
import { importJWK, JWTPayload } from 'jose';
|
|
5
|
-
import * as crypto from 'crypto';
|
|
6
4
|
|
|
7
5
|
type Awaitable<T> = T | Promise<T>;
|
|
8
6
|
type AwaitableFunction<T> = T | (() => Awaitable<T>);
|
|
@@ -134,7 +132,7 @@ type ProviderOptions<Profile extends Record<string, any> = any> = {
|
|
|
134
132
|
* WeChat user profile information
|
|
135
133
|
* @see https://developers.weixin.qq.com/doc/oplatform/en/Website_App/WeChat_Login/Wechat_Login.html
|
|
136
134
|
*/
|
|
137
|
-
interface WeChatProfile extends Record<string,
|
|
135
|
+
interface WeChatProfile extends Record<string, unknown> {
|
|
138
136
|
/**
|
|
139
137
|
* User's unique OpenID
|
|
140
138
|
*/
|
|
@@ -190,7 +188,7 @@ declare const wechat: (options: WeChatOptions) => {
|
|
|
190
188
|
redirectURI: string;
|
|
191
189
|
display?: string | undefined;
|
|
192
190
|
loginHint?: string | undefined;
|
|
193
|
-
}):
|
|
191
|
+
}): URL;
|
|
194
192
|
validateAuthorizationCode: ({ code }: {
|
|
195
193
|
code: string;
|
|
196
194
|
redirectURI: string;
|
|
@@ -255,7 +253,7 @@ declare const vercel: (options: VercelOptions) => {
|
|
|
255
253
|
redirectURI: string;
|
|
256
254
|
display?: string | undefined;
|
|
257
255
|
loginHint?: string | undefined;
|
|
258
|
-
}): Promise<
|
|
256
|
+
}): Promise<URL>;
|
|
259
257
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
260
258
|
code: string;
|
|
261
259
|
redirectURI: string;
|
|
@@ -307,7 +305,7 @@ declare const railway: (options: RailwayOptions) => {
|
|
|
307
305
|
redirectURI: string;
|
|
308
306
|
display?: string | undefined;
|
|
309
307
|
loginHint?: string | undefined;
|
|
310
|
-
}): Promise<
|
|
308
|
+
}): Promise<URL>;
|
|
311
309
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
312
310
|
code: string;
|
|
313
311
|
redirectURI: string;
|
|
@@ -358,8 +356,7 @@ interface PolarProfile {
|
|
|
358
356
|
profile_settings_public_email?: string;
|
|
359
357
|
} | undefined;
|
|
360
358
|
}
|
|
361
|
-
|
|
362
|
-
}
|
|
359
|
+
type PolarOptions = ProviderOptions<PolarProfile>;
|
|
363
360
|
declare const polar: (options: PolarOptions) => {
|
|
364
361
|
id: "polar";
|
|
365
362
|
name: string;
|
|
@@ -370,7 +367,7 @@ declare const polar: (options: PolarOptions) => {
|
|
|
370
367
|
redirectURI: string;
|
|
371
368
|
display?: string | undefined;
|
|
372
369
|
loginHint?: string | undefined;
|
|
373
|
-
}): Promise<
|
|
370
|
+
}): Promise<URL>;
|
|
374
371
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
375
372
|
code: string;
|
|
376
373
|
redirectURI: string;
|
|
@@ -482,7 +479,7 @@ declare const paybin: (options: PaybinOptions) => {
|
|
|
482
479
|
redirectURI: string;
|
|
483
480
|
display?: string | undefined;
|
|
484
481
|
loginHint?: string | undefined;
|
|
485
|
-
}): Promise<
|
|
482
|
+
}): Promise<URL>;
|
|
486
483
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
487
484
|
code: string;
|
|
488
485
|
redirectURI: string;
|
|
@@ -552,7 +549,7 @@ declare const line: (options: LineOptions) => {
|
|
|
552
549
|
redirectURI: string;
|
|
553
550
|
display?: string | undefined;
|
|
554
551
|
loginHint?: string | undefined;
|
|
555
|
-
}): Promise<
|
|
552
|
+
}): Promise<URL>;
|
|
556
553
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
557
554
|
code: string;
|
|
558
555
|
redirectURI: string;
|
|
@@ -579,27 +576,6 @@ declare const line: (options: LineOptions) => {
|
|
|
579
576
|
[key: string]: any;
|
|
580
577
|
};
|
|
581
578
|
data: any;
|
|
582
|
-
} | {
|
|
583
|
-
user: {
|
|
584
|
-
id: any;
|
|
585
|
-
name: any;
|
|
586
|
-
email: any;
|
|
587
|
-
image: any;
|
|
588
|
-
emailVerified: false;
|
|
589
|
-
} | {
|
|
590
|
-
id: any;
|
|
591
|
-
name: any;
|
|
592
|
-
email: any;
|
|
593
|
-
image: any;
|
|
594
|
-
emailVerified: boolean;
|
|
595
|
-
} | {
|
|
596
|
-
id: any;
|
|
597
|
-
name: any;
|
|
598
|
-
email: any;
|
|
599
|
-
image: any;
|
|
600
|
-
emailVerified: boolean;
|
|
601
|
-
};
|
|
602
|
-
data: any;
|
|
603
579
|
} | null>;
|
|
604
580
|
options: LineOptions;
|
|
605
581
|
};
|
|
@@ -645,7 +621,7 @@ declare const naver: (options: NaverOptions) => {
|
|
|
645
621
|
redirectURI: string;
|
|
646
622
|
display?: string | undefined;
|
|
647
623
|
loginHint?: string | undefined;
|
|
648
|
-
}): Promise<
|
|
624
|
+
}): Promise<URL>;
|
|
649
625
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
650
626
|
code: string;
|
|
651
627
|
redirectURI: string;
|
|
@@ -777,7 +753,7 @@ interface KakaoProfile {
|
|
|
777
753
|
/** UTC datetime when the user signed up via Kakao Sync */
|
|
778
754
|
synched_at?: string | undefined;
|
|
779
755
|
/** Custom user properties */
|
|
780
|
-
properties?: Record<string,
|
|
756
|
+
properties?: Record<string, unknown> | undefined;
|
|
781
757
|
/** Kakao account info */
|
|
782
758
|
kakao_account: KakaoAccount;
|
|
783
759
|
/** Partner info */
|
|
@@ -796,7 +772,7 @@ declare const kakao: (options: KakaoOptions) => {
|
|
|
796
772
|
redirectURI: string;
|
|
797
773
|
display?: string | undefined;
|
|
798
774
|
loginHint?: string | undefined;
|
|
799
|
-
}): Promise<
|
|
775
|
+
}): Promise<URL>;
|
|
800
776
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
801
777
|
code: string;
|
|
802
778
|
redirectURI: string;
|
|
@@ -806,7 +782,9 @@ declare const kakao: (options: KakaoOptions) => {
|
|
|
806
782
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
807
783
|
getUserInfo(token: OAuth2Tokens & {
|
|
808
784
|
user?: {
|
|
809
|
-
name
|
|
785
|
+
name
|
|
786
|
+
/** Birth year (YYYY) */
|
|
787
|
+
? /** Birth year (YYYY) */: {
|
|
810
788
|
firstName?: string;
|
|
811
789
|
lastName?: string;
|
|
812
790
|
};
|
|
@@ -870,7 +848,7 @@ declare const notion: (options: NotionOptions) => {
|
|
|
870
848
|
redirectURI: string;
|
|
871
849
|
display?: string | undefined;
|
|
872
850
|
loginHint?: string | undefined;
|
|
873
|
-
}): Promise<
|
|
851
|
+
}): Promise<URL>;
|
|
874
852
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
875
853
|
code: string;
|
|
876
854
|
redirectURI: string;
|
|
@@ -934,7 +912,7 @@ interface PhoneNumber {
|
|
|
934
912
|
* See the full documentation below:
|
|
935
913
|
* https://developers.zoom.us/docs/api/users/#tag/users/GET/users/{userId}
|
|
936
914
|
*/
|
|
937
|
-
interface ZoomProfile extends Record<string,
|
|
915
|
+
interface ZoomProfile extends Record<string, unknown> {
|
|
938
916
|
/** The user's account ID (Example: "q6gBJVO5TzexKYTb_I2rpg") */
|
|
939
917
|
account_id: string;
|
|
940
918
|
/** The user's account number (Example: 10009239) */
|
|
@@ -1054,7 +1032,7 @@ declare const vk: (options: VkOption) => {
|
|
|
1054
1032
|
redirectURI: string;
|
|
1055
1033
|
display?: string | undefined;
|
|
1056
1034
|
loginHint?: string | undefined;
|
|
1057
|
-
}): Promise<
|
|
1035
|
+
}): Promise<URL>;
|
|
1058
1036
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, deviceId, }: {
|
|
1059
1037
|
code: string;
|
|
1060
1038
|
redirectURI: string;
|
|
@@ -1121,7 +1099,7 @@ declare const salesforce: (options: SalesforceOptions) => {
|
|
|
1121
1099
|
redirectURI: string;
|
|
1122
1100
|
display?: string | undefined;
|
|
1123
1101
|
loginHint?: string | undefined;
|
|
1124
|
-
}): Promise<
|
|
1102
|
+
}): Promise<URL>;
|
|
1125
1103
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1126
1104
|
code: string;
|
|
1127
1105
|
redirectURI: string;
|
|
@@ -1151,7 +1129,7 @@ declare const salesforce: (options: SalesforceOptions) => {
|
|
|
1151
1129
|
options: SalesforceOptions;
|
|
1152
1130
|
};
|
|
1153
1131
|
|
|
1154
|
-
interface RobloxProfile extends Record<string,
|
|
1132
|
+
interface RobloxProfile extends Record<string, unknown> {
|
|
1155
1133
|
/** the user's id */
|
|
1156
1134
|
sub: string;
|
|
1157
1135
|
/** the user's username */
|
|
@@ -1181,7 +1159,7 @@ declare const roblox: (options: RobloxOptions) => {
|
|
|
1181
1159
|
redirectURI: string;
|
|
1182
1160
|
display?: string | undefined;
|
|
1183
1161
|
loginHint?: string | undefined;
|
|
1184
|
-
}):
|
|
1162
|
+
}): URL;
|
|
1185
1163
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1186
1164
|
code: string;
|
|
1187
1165
|
redirectURI: string;
|
|
@@ -1233,7 +1211,7 @@ declare const reddit: (options: RedditOptions) => {
|
|
|
1233
1211
|
redirectURI: string;
|
|
1234
1212
|
display?: string | undefined;
|
|
1235
1213
|
loginHint?: string | undefined;
|
|
1236
|
-
}): Promise<
|
|
1214
|
+
}): Promise<URL>;
|
|
1237
1215
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1238
1216
|
code: string;
|
|
1239
1217
|
redirectURI: string;
|
|
@@ -1266,7 +1244,7 @@ declare const reddit: (options: RedditOptions) => {
|
|
|
1266
1244
|
/**
|
|
1267
1245
|
* [More info](https://developers.tiktok.com/doc/tiktok-api-v2-get-user-info/)
|
|
1268
1246
|
*/
|
|
1269
|
-
interface TiktokProfile extends Record<string,
|
|
1247
|
+
interface TiktokProfile extends Record<string, unknown> {
|
|
1270
1248
|
data: {
|
|
1271
1249
|
user: {
|
|
1272
1250
|
/**
|
|
@@ -1392,7 +1370,7 @@ declare const tiktok: (options: TiktokOptions) => {
|
|
|
1392
1370
|
redirectURI: string;
|
|
1393
1371
|
display?: string | undefined;
|
|
1394
1372
|
loginHint?: string | undefined;
|
|
1395
|
-
}):
|
|
1373
|
+
}): URL;
|
|
1396
1374
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1397
1375
|
code: string;
|
|
1398
1376
|
redirectURI: string;
|
|
@@ -1422,7 +1400,7 @@ declare const tiktok: (options: TiktokOptions) => {
|
|
|
1422
1400
|
options: TiktokOptions;
|
|
1423
1401
|
};
|
|
1424
1402
|
|
|
1425
|
-
interface GitlabProfile extends Record<string,
|
|
1403
|
+
interface GitlabProfile extends Record<string, unknown> {
|
|
1426
1404
|
id: number;
|
|
1427
1405
|
username: string;
|
|
1428
1406
|
email: string;
|
|
@@ -1481,7 +1459,7 @@ declare const gitlab: (options: GitlabOptions) => {
|
|
|
1481
1459
|
redirectURI: string;
|
|
1482
1460
|
display?: string | undefined;
|
|
1483
1461
|
loginHint?: string | undefined;
|
|
1484
|
-
}) => Promise<
|
|
1462
|
+
}) => Promise<URL>;
|
|
1485
1463
|
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
1486
1464
|
code: string;
|
|
1487
1465
|
redirectURI: string;
|
|
@@ -1558,7 +1536,7 @@ declare const linkedin: (options: LinkedInOptions) => {
|
|
|
1558
1536
|
redirectURI: string;
|
|
1559
1537
|
display?: string | undefined;
|
|
1560
1538
|
loginHint?: string | undefined;
|
|
1561
|
-
}) => Promise<
|
|
1539
|
+
}) => Promise<URL>;
|
|
1562
1540
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1563
1541
|
code: string;
|
|
1564
1542
|
redirectURI: string;
|
|
@@ -1615,7 +1593,7 @@ declare const linear: (options: LinearOptions) => {
|
|
|
1615
1593
|
redirectURI: string;
|
|
1616
1594
|
display?: string | undefined;
|
|
1617
1595
|
loginHint?: string | undefined;
|
|
1618
|
-
}): Promise<
|
|
1596
|
+
}): Promise<URL>;
|
|
1619
1597
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1620
1598
|
code: string;
|
|
1621
1599
|
redirectURI: string;
|
|
@@ -1676,7 +1654,7 @@ declare const kick: (options: KickOptions) => {
|
|
|
1676
1654
|
redirectURI: string;
|
|
1677
1655
|
display?: string | undefined;
|
|
1678
1656
|
loginHint?: string | undefined;
|
|
1679
|
-
}): Promise<
|
|
1657
|
+
}): Promise<URL>;
|
|
1680
1658
|
validateAuthorizationCode({ code, redirectURI, codeVerifier }: {
|
|
1681
1659
|
code: string;
|
|
1682
1660
|
redirectURI: string;
|
|
@@ -1733,7 +1711,7 @@ declare const dropbox: (options: DropboxOptions) => {
|
|
|
1733
1711
|
redirectURI: string;
|
|
1734
1712
|
display?: string | undefined;
|
|
1735
1713
|
loginHint?: string | undefined;
|
|
1736
|
-
}) => Promise<
|
|
1714
|
+
}) => Promise<URL>;
|
|
1737
1715
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1738
1716
|
code: string;
|
|
1739
1717
|
redirectURI: string;
|
|
@@ -1864,7 +1842,7 @@ declare const twitter: (options: TwitterOption) => {
|
|
|
1864
1842
|
redirectURI: string;
|
|
1865
1843
|
display?: string | undefined;
|
|
1866
1844
|
loginHint?: string | undefined;
|
|
1867
|
-
}): Promise<
|
|
1845
|
+
}): Promise<URL>;
|
|
1868
1846
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1869
1847
|
code: string;
|
|
1870
1848
|
redirectURI: string;
|
|
@@ -1933,7 +1911,7 @@ declare const twitch: (options: TwitchOptions) => {
|
|
|
1933
1911
|
redirectURI: string;
|
|
1934
1912
|
display?: string | undefined;
|
|
1935
1913
|
loginHint?: string | undefined;
|
|
1936
|
-
}): Promise<
|
|
1914
|
+
}): Promise<URL>;
|
|
1937
1915
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1938
1916
|
code: string;
|
|
1939
1917
|
redirectURI: string;
|
|
@@ -1984,7 +1962,7 @@ declare const spotify: (options: SpotifyOptions) => {
|
|
|
1984
1962
|
redirectURI: string;
|
|
1985
1963
|
display?: string | undefined;
|
|
1986
1964
|
loginHint?: string | undefined;
|
|
1987
|
-
}): Promise<
|
|
1965
|
+
}): Promise<URL>;
|
|
1988
1966
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1989
1967
|
code: string;
|
|
1990
1968
|
redirectURI: string;
|
|
@@ -2014,7 +1992,7 @@ declare const spotify: (options: SpotifyOptions) => {
|
|
|
2014
1992
|
options: SpotifyOptions;
|
|
2015
1993
|
};
|
|
2016
1994
|
|
|
2017
|
-
interface SlackProfile extends Record<string,
|
|
1995
|
+
interface SlackProfile extends Record<string, unknown> {
|
|
2018
1996
|
ok: boolean;
|
|
2019
1997
|
sub: string;
|
|
2020
1998
|
"https://slack.com/user_id": string;
|
|
@@ -2057,7 +2035,7 @@ declare const slack: (options: SlackOptions) => {
|
|
|
2057
2035
|
redirectURI: string;
|
|
2058
2036
|
display?: string | undefined;
|
|
2059
2037
|
loginHint?: string | undefined;
|
|
2060
|
-
}):
|
|
2038
|
+
}): URL;
|
|
2061
2039
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
2062
2040
|
code: string;
|
|
2063
2041
|
redirectURI: string;
|
|
@@ -2128,7 +2106,7 @@ declare const huggingface: (options: HuggingFaceOptions) => {
|
|
|
2128
2106
|
redirectURI: string;
|
|
2129
2107
|
display?: string | undefined;
|
|
2130
2108
|
loginHint?: string | undefined;
|
|
2131
|
-
}): Promise<
|
|
2109
|
+
}): Promise<URL>;
|
|
2132
2110
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2133
2111
|
code: string;
|
|
2134
2112
|
redirectURI: string;
|
|
@@ -2222,7 +2200,7 @@ interface VerifyGoogleIdTokenOptions {
|
|
|
2222
2200
|
* @see https://learn.microsoft.com/en-us/entra/identity-platform/id-token-claims-reference
|
|
2223
2201
|
*/
|
|
2224
2202
|
declare const MICROSOFT_CONSUMER_TENANT_ID = "9188040d-6c67-4c5b-b112-36a304b66dad";
|
|
2225
|
-
interface MicrosoftEntraIDProfile extends Record<string,
|
|
2203
|
+
interface MicrosoftEntraIDProfile extends Record<string, unknown> {
|
|
2226
2204
|
/** Identifies the intended recipient of the token */
|
|
2227
2205
|
aud: string;
|
|
2228
2206
|
/** Identifies the issuer, or "authorization server" that constructs and returns the token */
|
|
@@ -2404,7 +2382,7 @@ declare const github: (options: GithubOptions) => {
|
|
|
2404
2382
|
redirectURI: string;
|
|
2405
2383
|
display?: string | undefined;
|
|
2406
2384
|
loginHint?: string | undefined;
|
|
2407
|
-
}): Promise<
|
|
2385
|
+
}): Promise<URL>;
|
|
2408
2386
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2409
2387
|
code: string;
|
|
2410
2388
|
redirectURI: string;
|
|
@@ -2453,7 +2431,7 @@ declare const figma: (options: FigmaOptions) => {
|
|
|
2453
2431
|
redirectURI: string;
|
|
2454
2432
|
display?: string | undefined;
|
|
2455
2433
|
loginHint?: string | undefined;
|
|
2456
|
-
}): Promise<
|
|
2434
|
+
}): Promise<URL>;
|
|
2457
2435
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2458
2436
|
code: string;
|
|
2459
2437
|
redirectURI: string;
|
|
@@ -2518,7 +2496,7 @@ interface FacebookOptions extends ProviderOptions<FacebookProfile> {
|
|
|
2518
2496
|
configId?: string | undefined;
|
|
2519
2497
|
}
|
|
2520
2498
|
|
|
2521
|
-
interface DiscordProfile extends Record<string,
|
|
2499
|
+
interface DiscordProfile extends Record<string, unknown> {
|
|
2522
2500
|
/** the user's id (i.e. the numerical snowflake) */
|
|
2523
2501
|
id: string;
|
|
2524
2502
|
/** the user's username, not unique across the platform */
|
|
@@ -2602,7 +2580,7 @@ declare const discord: (options: DiscordOptions) => {
|
|
|
2602
2580
|
redirectURI: string;
|
|
2603
2581
|
display?: string | undefined;
|
|
2604
2582
|
loginHint?: string | undefined;
|
|
2605
|
-
}):
|
|
2583
|
+
}): URL;
|
|
2606
2584
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
2607
2585
|
code: string;
|
|
2608
2586
|
redirectURI: string;
|
|
@@ -2652,7 +2630,7 @@ interface CognitoProfile {
|
|
|
2652
2630
|
iss: string;
|
|
2653
2631
|
exp: number;
|
|
2654
2632
|
iat: number;
|
|
2655
|
-
[key: string]:
|
|
2633
|
+
[key: string]: unknown;
|
|
2656
2634
|
}
|
|
2657
2635
|
interface CognitoOptions extends ProviderOptions<CognitoProfile> {
|
|
2658
2636
|
clientId: string | string[];
|
|
@@ -2733,7 +2711,7 @@ declare const athena: (options: AthenaOptions) => {
|
|
|
2733
2711
|
redirectURI: string;
|
|
2734
2712
|
display?: string | undefined;
|
|
2735
2713
|
loginHint?: string | undefined;
|
|
2736
|
-
}): Promise<
|
|
2714
|
+
}): Promise<URL>;
|
|
2737
2715
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, }: {
|
|
2738
2716
|
code: string;
|
|
2739
2717
|
redirectURI: string;
|
|
@@ -2791,7 +2769,7 @@ declare const atlassian: (options: AtlassianOptions) => {
|
|
|
2791
2769
|
redirectURI: string;
|
|
2792
2770
|
display?: string | undefined;
|
|
2793
2771
|
loginHint?: string | undefined;
|
|
2794
|
-
}): Promise<
|
|
2772
|
+
}): Promise<URL>;
|
|
2795
2773
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2796
2774
|
code: string;
|
|
2797
2775
|
redirectURI: string;
|
|
@@ -2923,7 +2901,7 @@ declare const socialProviders: {
|
|
|
2923
2901
|
redirectURI: string;
|
|
2924
2902
|
display?: string | undefined;
|
|
2925
2903
|
loginHint?: string | undefined;
|
|
2926
|
-
}): Promise<
|
|
2904
|
+
}): Promise<URL>;
|
|
2927
2905
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2928
2906
|
code: string;
|
|
2929
2907
|
redirectURI: string;
|
|
@@ -2963,7 +2941,7 @@ declare const socialProviders: {
|
|
|
2963
2941
|
redirectURI: string;
|
|
2964
2942
|
display?: string | undefined;
|
|
2965
2943
|
loginHint?: string | undefined;
|
|
2966
|
-
}): Promise<
|
|
2944
|
+
}): Promise<URL>;
|
|
2967
2945
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
2968
2946
|
code: string;
|
|
2969
2947
|
redirectURI: string;
|
|
@@ -3002,7 +2980,7 @@ declare const socialProviders: {
|
|
|
3002
2980
|
redirectURI: string;
|
|
3003
2981
|
display?: string | undefined;
|
|
3004
2982
|
loginHint?: string | undefined;
|
|
3005
|
-
}): Promise<
|
|
2983
|
+
}): Promise<URL>;
|
|
3006
2984
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, }: {
|
|
3007
2985
|
code: string;
|
|
3008
2986
|
redirectURI: string;
|
|
@@ -3041,7 +3019,7 @@ declare const socialProviders: {
|
|
|
3041
3019
|
redirectURI: string;
|
|
3042
3020
|
display?: string | undefined;
|
|
3043
3021
|
loginHint?: string | undefined;
|
|
3044
|
-
}): Promise<
|
|
3022
|
+
}): Promise<URL>;
|
|
3045
3023
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3046
3024
|
code: string;
|
|
3047
3025
|
redirectURI: string;
|
|
@@ -3081,7 +3059,7 @@ declare const socialProviders: {
|
|
|
3081
3059
|
redirectURI: string;
|
|
3082
3060
|
display?: string | undefined;
|
|
3083
3061
|
loginHint?: string | undefined;
|
|
3084
|
-
}):
|
|
3062
|
+
}): URL;
|
|
3085
3063
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3086
3064
|
code: string;
|
|
3087
3065
|
redirectURI: string;
|
|
@@ -3120,7 +3098,7 @@ declare const socialProviders: {
|
|
|
3120
3098
|
redirectURI: string;
|
|
3121
3099
|
display?: string | undefined;
|
|
3122
3100
|
loginHint?: string | undefined;
|
|
3123
|
-
}): Promise<
|
|
3101
|
+
}): Promise<URL>;
|
|
3124
3102
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3125
3103
|
code: string;
|
|
3126
3104
|
redirectURI: string;
|
|
@@ -3160,7 +3138,7 @@ declare const socialProviders: {
|
|
|
3160
3138
|
redirectURI: string;
|
|
3161
3139
|
display?: string | undefined;
|
|
3162
3140
|
loginHint?: string | undefined;
|
|
3163
|
-
}): Promise<
|
|
3141
|
+
}): Promise<URL>;
|
|
3164
3142
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3165
3143
|
code: string;
|
|
3166
3144
|
redirectURI: string;
|
|
@@ -3199,7 +3177,7 @@ declare const socialProviders: {
|
|
|
3199
3177
|
redirectURI: string;
|
|
3200
3178
|
display?: string | undefined;
|
|
3201
3179
|
loginHint?: string | undefined;
|
|
3202
|
-
}): Promise<
|
|
3180
|
+
}): Promise<URL>;
|
|
3203
3181
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3204
3182
|
code: string;
|
|
3205
3183
|
redirectURI: string;
|
|
@@ -3238,7 +3216,7 @@ declare const socialProviders: {
|
|
|
3238
3216
|
redirectURI: string;
|
|
3239
3217
|
display?: string | undefined;
|
|
3240
3218
|
loginHint?: string | undefined;
|
|
3241
|
-
}): Promise<
|
|
3219
|
+
}): Promise<URL>;
|
|
3242
3220
|
validateAuthorizationCode({ code, codeVerifier, redirectURI }: {
|
|
3243
3221
|
code: string;
|
|
3244
3222
|
redirectURI: string;
|
|
@@ -3278,7 +3256,7 @@ declare const socialProviders: {
|
|
|
3278
3256
|
redirectURI: string;
|
|
3279
3257
|
display?: string | undefined;
|
|
3280
3258
|
loginHint?: string | undefined;
|
|
3281
|
-
}): Promise<
|
|
3259
|
+
}): Promise<URL>;
|
|
3282
3260
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3283
3261
|
code: string;
|
|
3284
3262
|
redirectURI: string;
|
|
@@ -3318,7 +3296,7 @@ declare const socialProviders: {
|
|
|
3318
3296
|
redirectURI: string;
|
|
3319
3297
|
display?: string | undefined;
|
|
3320
3298
|
loginHint?: string | undefined;
|
|
3321
|
-
}): Promise<
|
|
3299
|
+
}): Promise<URL>;
|
|
3322
3300
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3323
3301
|
code: string;
|
|
3324
3302
|
redirectURI: string;
|
|
@@ -3357,7 +3335,7 @@ declare const socialProviders: {
|
|
|
3357
3335
|
redirectURI: string;
|
|
3358
3336
|
display?: string | undefined;
|
|
3359
3337
|
loginHint?: string | undefined;
|
|
3360
|
-
}):
|
|
3338
|
+
}): URL;
|
|
3361
3339
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3362
3340
|
code: string;
|
|
3363
3341
|
redirectURI: string;
|
|
@@ -3396,7 +3374,7 @@ declare const socialProviders: {
|
|
|
3396
3374
|
redirectURI: string;
|
|
3397
3375
|
display?: string | undefined;
|
|
3398
3376
|
loginHint?: string | undefined;
|
|
3399
|
-
}): Promise<
|
|
3377
|
+
}): Promise<URL>;
|
|
3400
3378
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3401
3379
|
code: string;
|
|
3402
3380
|
redirectURI: string;
|
|
@@ -3435,7 +3413,7 @@ declare const socialProviders: {
|
|
|
3435
3413
|
redirectURI: string;
|
|
3436
3414
|
display?: string | undefined;
|
|
3437
3415
|
loginHint?: string | undefined;
|
|
3438
|
-
}): Promise<
|
|
3416
|
+
}): Promise<URL>;
|
|
3439
3417
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3440
3418
|
code: string;
|
|
3441
3419
|
redirectURI: string;
|
|
@@ -3474,7 +3452,7 @@ declare const socialProviders: {
|
|
|
3474
3452
|
redirectURI: string;
|
|
3475
3453
|
display?: string | undefined;
|
|
3476
3454
|
loginHint?: string | undefined;
|
|
3477
|
-
}): Promise<
|
|
3455
|
+
}): Promise<URL>;
|
|
3478
3456
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3479
3457
|
code: string;
|
|
3480
3458
|
redirectURI: string;
|
|
@@ -3513,7 +3491,7 @@ declare const socialProviders: {
|
|
|
3513
3491
|
redirectURI: string;
|
|
3514
3492
|
display?: string | undefined;
|
|
3515
3493
|
loginHint?: string | undefined;
|
|
3516
|
-
}) => Promise<
|
|
3494
|
+
}) => Promise<URL>;
|
|
3517
3495
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3518
3496
|
code: string;
|
|
3519
3497
|
redirectURI: string;
|
|
@@ -3552,7 +3530,7 @@ declare const socialProviders: {
|
|
|
3552
3530
|
redirectURI: string;
|
|
3553
3531
|
display?: string | undefined;
|
|
3554
3532
|
loginHint?: string | undefined;
|
|
3555
|
-
}): Promise<
|
|
3533
|
+
}): Promise<URL>;
|
|
3556
3534
|
validateAuthorizationCode({ code, redirectURI, codeVerifier }: {
|
|
3557
3535
|
code: string;
|
|
3558
3536
|
redirectURI: string;
|
|
@@ -3591,7 +3569,7 @@ declare const socialProviders: {
|
|
|
3591
3569
|
redirectURI: string;
|
|
3592
3570
|
display?: string | undefined;
|
|
3593
3571
|
loginHint?: string | undefined;
|
|
3594
|
-
}): Promise<
|
|
3572
|
+
}): Promise<URL>;
|
|
3595
3573
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3596
3574
|
code: string;
|
|
3597
3575
|
redirectURI: string;
|
|
@@ -3630,7 +3608,7 @@ declare const socialProviders: {
|
|
|
3630
3608
|
redirectURI: string;
|
|
3631
3609
|
display?: string | undefined;
|
|
3632
3610
|
loginHint?: string | undefined;
|
|
3633
|
-
}) => Promise<
|
|
3611
|
+
}) => Promise<URL>;
|
|
3634
3612
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3635
3613
|
code: string;
|
|
3636
3614
|
redirectURI: string;
|
|
@@ -3669,7 +3647,7 @@ declare const socialProviders: {
|
|
|
3669
3647
|
redirectURI: string;
|
|
3670
3648
|
display?: string | undefined;
|
|
3671
3649
|
loginHint?: string | undefined;
|
|
3672
|
-
}) => Promise<
|
|
3650
|
+
}) => Promise<URL>;
|
|
3673
3651
|
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
3674
3652
|
code: string;
|
|
3675
3653
|
redirectURI: string;
|
|
@@ -3729,7 +3707,7 @@ declare const socialProviders: {
|
|
|
3729
3707
|
redirectURI: string;
|
|
3730
3708
|
display?: string | undefined;
|
|
3731
3709
|
loginHint?: string | undefined;
|
|
3732
|
-
}):
|
|
3710
|
+
}): URL;
|
|
3733
3711
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3734
3712
|
code: string;
|
|
3735
3713
|
redirectURI: string;
|
|
@@ -3768,7 +3746,7 @@ declare const socialProviders: {
|
|
|
3768
3746
|
redirectURI: string;
|
|
3769
3747
|
display?: string | undefined;
|
|
3770
3748
|
loginHint?: string | undefined;
|
|
3771
|
-
}): Promise<
|
|
3749
|
+
}): Promise<URL>;
|
|
3772
3750
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3773
3751
|
code: string;
|
|
3774
3752
|
redirectURI: string;
|
|
@@ -3807,7 +3785,7 @@ declare const socialProviders: {
|
|
|
3807
3785
|
redirectURI: string;
|
|
3808
3786
|
display?: string | undefined;
|
|
3809
3787
|
loginHint?: string | undefined;
|
|
3810
|
-
}):
|
|
3788
|
+
}): URL;
|
|
3811
3789
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3812
3790
|
code: string;
|
|
3813
3791
|
redirectURI: string;
|
|
@@ -3846,7 +3824,7 @@ declare const socialProviders: {
|
|
|
3846
3824
|
redirectURI: string;
|
|
3847
3825
|
display?: string | undefined;
|
|
3848
3826
|
loginHint?: string | undefined;
|
|
3849
|
-
}): Promise<
|
|
3827
|
+
}): Promise<URL>;
|
|
3850
3828
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
3851
3829
|
code: string;
|
|
3852
3830
|
redirectURI: string;
|
|
@@ -3885,7 +3863,7 @@ declare const socialProviders: {
|
|
|
3885
3863
|
redirectURI: string;
|
|
3886
3864
|
display?: string | undefined;
|
|
3887
3865
|
loginHint?: string | undefined;
|
|
3888
|
-
}): Promise<
|
|
3866
|
+
}): Promise<URL>;
|
|
3889
3867
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, deviceId, }: {
|
|
3890
3868
|
code: string;
|
|
3891
3869
|
redirectURI: string;
|
|
@@ -3924,7 +3902,7 @@ declare const socialProviders: {
|
|
|
3924
3902
|
redirectURI: string;
|
|
3925
3903
|
display?: string | undefined;
|
|
3926
3904
|
loginHint?: string | undefined;
|
|
3927
|
-
}) => Promise<
|
|
3905
|
+
}) => Promise<URL>;
|
|
3928
3906
|
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
3929
3907
|
code: string;
|
|
3930
3908
|
redirectURI: string;
|
|
@@ -3962,7 +3940,7 @@ declare const socialProviders: {
|
|
|
3962
3940
|
redirectURI: string;
|
|
3963
3941
|
display?: string | undefined;
|
|
3964
3942
|
loginHint?: string | undefined;
|
|
3965
|
-
}): Promise<
|
|
3943
|
+
}): Promise<URL>;
|
|
3966
3944
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
3967
3945
|
code: string;
|
|
3968
3946
|
redirectURI: string;
|
|
@@ -4001,7 +3979,7 @@ declare const socialProviders: {
|
|
|
4001
3979
|
redirectURI: string;
|
|
4002
3980
|
display?: string | undefined;
|
|
4003
3981
|
loginHint?: string | undefined;
|
|
4004
|
-
}): Promise<
|
|
3982
|
+
}): Promise<URL>;
|
|
4005
3983
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
4006
3984
|
code: string;
|
|
4007
3985
|
redirectURI: string;
|
|
@@ -4061,7 +4039,7 @@ declare const socialProviders: {
|
|
|
4061
4039
|
redirectURI: string;
|
|
4062
4040
|
display?: string | undefined;
|
|
4063
4041
|
loginHint?: string | undefined;
|
|
4064
|
-
}): Promise<
|
|
4042
|
+
}): Promise<URL>;
|
|
4065
4043
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
4066
4044
|
code: string;
|
|
4067
4045
|
redirectURI: string;
|
|
@@ -4121,7 +4099,7 @@ declare const socialProviders: {
|
|
|
4121
4099
|
redirectURI: string;
|
|
4122
4100
|
display?: string | undefined;
|
|
4123
4101
|
loginHint?: string | undefined;
|
|
4124
|
-
}): Promise<
|
|
4102
|
+
}): Promise<URL>;
|
|
4125
4103
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4126
4104
|
code: string;
|
|
4127
4105
|
redirectURI: string;
|
|
@@ -4148,27 +4126,6 @@ declare const socialProviders: {
|
|
|
4148
4126
|
[key: string]: any;
|
|
4149
4127
|
};
|
|
4150
4128
|
data: any;
|
|
4151
|
-
} | {
|
|
4152
|
-
user: {
|
|
4153
|
-
id: any;
|
|
4154
|
-
name: any;
|
|
4155
|
-
email: any;
|
|
4156
|
-
image: any;
|
|
4157
|
-
emailVerified: false;
|
|
4158
|
-
} | {
|
|
4159
|
-
id: any;
|
|
4160
|
-
name: any;
|
|
4161
|
-
email: any;
|
|
4162
|
-
image: any;
|
|
4163
|
-
emailVerified: boolean;
|
|
4164
|
-
} | {
|
|
4165
|
-
id: any;
|
|
4166
|
-
name: any;
|
|
4167
|
-
email: any;
|
|
4168
|
-
image: any;
|
|
4169
|
-
emailVerified: boolean;
|
|
4170
|
-
};
|
|
4171
|
-
data: any;
|
|
4172
4129
|
} | null>;
|
|
4173
4130
|
options: LineOptions;
|
|
4174
4131
|
};
|
|
@@ -4182,7 +4139,7 @@ declare const socialProviders: {
|
|
|
4182
4139
|
redirectURI: string;
|
|
4183
4140
|
display?: string | undefined;
|
|
4184
4141
|
loginHint?: string | undefined;
|
|
4185
|
-
}): Promise<
|
|
4142
|
+
}): Promise<URL>;
|
|
4186
4143
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4187
4144
|
code: string;
|
|
4188
4145
|
redirectURI: string;
|
|
@@ -4221,7 +4178,7 @@ declare const socialProviders: {
|
|
|
4221
4178
|
redirectURI: string;
|
|
4222
4179
|
display?: string | undefined;
|
|
4223
4180
|
loginHint?: string | undefined;
|
|
4224
|
-
}): Promise<
|
|
4181
|
+
}): Promise<URL>;
|
|
4225
4182
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
4226
4183
|
code: string;
|
|
4227
4184
|
redirectURI: string;
|
|
@@ -4234,8 +4191,8 @@ declare const socialProviders: {
|
|
|
4234
4191
|
idToken: string | undefined;
|
|
4235
4192
|
}>;
|
|
4236
4193
|
refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens>) | ((refreshToken: string) => Promise<{
|
|
4237
|
-
accessToken:
|
|
4238
|
-
refreshToken:
|
|
4194
|
+
accessToken: string | undefined;
|
|
4195
|
+
refreshToken: string | undefined;
|
|
4239
4196
|
accessTokenExpiresAt: Date | undefined;
|
|
4240
4197
|
}>);
|
|
4241
4198
|
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
@@ -4291,7 +4248,7 @@ declare const socialProviders: {
|
|
|
4291
4248
|
redirectURI: string;
|
|
4292
4249
|
display?: string | undefined;
|
|
4293
4250
|
loginHint?: string | undefined;
|
|
4294
|
-
}): Promise<
|
|
4251
|
+
}): Promise<URL>;
|
|
4295
4252
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4296
4253
|
code: string;
|
|
4297
4254
|
redirectURI: string;
|
|
@@ -4330,7 +4287,7 @@ declare const socialProviders: {
|
|
|
4330
4287
|
redirectURI: string;
|
|
4331
4288
|
display?: string | undefined;
|
|
4332
4289
|
loginHint?: string | undefined;
|
|
4333
|
-
}): Promise<
|
|
4290
|
+
}): Promise<URL>;
|
|
4334
4291
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4335
4292
|
code: string;
|
|
4336
4293
|
redirectURI: string;
|
|
@@ -4369,7 +4326,7 @@ declare const socialProviders: {
|
|
|
4369
4326
|
redirectURI: string;
|
|
4370
4327
|
display?: string | undefined;
|
|
4371
4328
|
loginHint?: string | undefined;
|
|
4372
|
-
}): Promise<
|
|
4329
|
+
}): Promise<URL>;
|
|
4373
4330
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4374
4331
|
code: string;
|
|
4375
4332
|
redirectURI: string;
|
|
@@ -4407,7 +4364,7 @@ declare const socialProviders: {
|
|
|
4407
4364
|
redirectURI: string;
|
|
4408
4365
|
display?: string | undefined;
|
|
4409
4366
|
loginHint?: string | undefined;
|
|
4410
|
-
}):
|
|
4367
|
+
}): URL;
|
|
4411
4368
|
validateAuthorizationCode: ({ code }: {
|
|
4412
4369
|
code: string;
|
|
4413
4370
|
redirectURI: string;
|
|
@@ -4527,7 +4484,7 @@ declare function trimTrailingSlash(value: string): string;
|
|
|
4527
4484
|
* Fetch Apple's JWKS and import the key for the given JWT `kid`.
|
|
4528
4485
|
* @see https://appleid.apple.com/auth/keys
|
|
4529
4486
|
*/
|
|
4530
|
-
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> |
|
|
4487
|
+
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
4531
4488
|
|
|
4532
4489
|
/**
|
|
4533
4490
|
* Sign in with Apple OAuth provider factory.
|
|
@@ -4547,7 +4504,7 @@ declare const apple: (options: AppleOptions) => {
|
|
|
4547
4504
|
redirectURI: string;
|
|
4548
4505
|
display?: string | undefined;
|
|
4549
4506
|
loginHint?: string | undefined;
|
|
4550
|
-
}): Promise<
|
|
4507
|
+
}): Promise<URL>;
|
|
4551
4508
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4552
4509
|
code: string;
|
|
4553
4510
|
redirectURI: string;
|
|
@@ -4585,7 +4542,7 @@ declare const apple: (options: AppleOptions) => {
|
|
|
4585
4542
|
* @param region - AWS region of the pool (e.g. `us-east-1`)
|
|
4586
4543
|
* @param userPoolId - Cognito User Pool id
|
|
4587
4544
|
*/
|
|
4588
|
-
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<Uint8Array<ArrayBufferLike> |
|
|
4545
|
+
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
4589
4546
|
|
|
4590
4547
|
/**
|
|
4591
4548
|
* Amazon Cognito Hosted UI OAuth provider factory.
|
|
@@ -4602,7 +4559,7 @@ declare const cognito: (options: CognitoOptions) => {
|
|
|
4602
4559
|
redirectURI: string;
|
|
4603
4560
|
display?: string | undefined;
|
|
4604
4561
|
loginHint?: string | undefined;
|
|
4605
|
-
}): Promise<
|
|
4562
|
+
}): Promise<URL>;
|
|
4606
4563
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4607
4564
|
code: string;
|
|
4608
4565
|
redirectURI: string;
|
|
@@ -4666,7 +4623,7 @@ declare const facebook: (options: FacebookOptions) => {
|
|
|
4666
4623
|
redirectURI: string;
|
|
4667
4624
|
display?: string | undefined;
|
|
4668
4625
|
loginHint?: string | undefined;
|
|
4669
|
-
}): Promise<
|
|
4626
|
+
}): Promise<URL>;
|
|
4670
4627
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
4671
4628
|
code: string;
|
|
4672
4629
|
redirectURI: string;
|
|
@@ -4697,7 +4654,7 @@ declare const facebook: (options: FacebookOptions) => {
|
|
|
4697
4654
|
options: FacebookOptions;
|
|
4698
4655
|
};
|
|
4699
4656
|
|
|
4700
|
-
declare const getGooglePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> |
|
|
4657
|
+
declare const getGooglePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
4701
4658
|
|
|
4702
4659
|
/**
|
|
4703
4660
|
* Verifies a Google ID token against Google's issuer, audience, signature,
|
|
@@ -4726,7 +4683,7 @@ declare const google: (options: GoogleOptions) => {
|
|
|
4726
4683
|
redirectURI: string;
|
|
4727
4684
|
display?: string | undefined;
|
|
4728
4685
|
loginHint?: string | undefined;
|
|
4729
|
-
}): Promise<
|
|
4686
|
+
}): Promise<URL>;
|
|
4730
4687
|
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
4731
4688
|
code: string;
|
|
4732
4689
|
redirectURI: string;
|
|
@@ -4764,7 +4721,7 @@ declare const google: (options: GoogleOptions) => {
|
|
|
4764
4721
|
* @param tenant - Tenant id or common/organizations/consumers
|
|
4765
4722
|
* @param authority - Authority host (no trailing slash), e.g. login.microsoftonline.com
|
|
4766
4723
|
*/
|
|
4767
|
-
declare const getMicrosoftPublicKey: (kid: string, tenant: string, authority: string) => Promise<Uint8Array<ArrayBufferLike> |
|
|
4724
|
+
declare const getMicrosoftPublicKey: (kid: string, tenant: string, authority: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
4768
4725
|
|
|
4769
4726
|
/**
|
|
4770
4727
|
* Microsoft Entra ID (Azure AD) OAuth provider factory.
|
|
@@ -4784,7 +4741,7 @@ declare const microsoft: (options: MicrosoftOptions) => {
|
|
|
4784
4741
|
redirectURI: string;
|
|
4785
4742
|
display?: string | undefined;
|
|
4786
4743
|
loginHint?: string | undefined;
|
|
4787
|
-
}): Promise<
|
|
4744
|
+
}): Promise<URL>;
|
|
4788
4745
|
validateAuthorizationCode({ code, codeVerifier, redirectURI }: {
|
|
4789
4746
|
code: string;
|
|
4790
4747
|
redirectURI: string;
|
|
@@ -4821,7 +4778,7 @@ declare const microsoft: (options: MicrosoftOptions) => {
|
|
|
4821
4778
|
* @param kid - Key id from the JWT protected header
|
|
4822
4779
|
* @param jwksUri - Sandbox or live JWKS endpoint
|
|
4823
4780
|
*/
|
|
4824
|
-
declare const getPayPalPublicKey: (kid: string, jwksUri: string) => Promise<Uint8Array<ArrayBufferLike> |
|
|
4781
|
+
declare const getPayPalPublicKey: (kid: string, jwksUri: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
4825
4782
|
|
|
4826
4783
|
/**
|
|
4827
4784
|
* PayPal Login with PayPal OAuth provider factory.
|
|
@@ -4839,7 +4796,7 @@ declare const paypal: (options: PayPalOptions) => {
|
|
|
4839
4796
|
redirectURI: string;
|
|
4840
4797
|
display?: string | undefined;
|
|
4841
4798
|
loginHint?: string | undefined;
|
|
4842
|
-
}): Promise<
|
|
4799
|
+
}): Promise<URL>;
|
|
4843
4800
|
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
4844
4801
|
code: string;
|
|
4845
4802
|
redirectURI: string;
|
|
@@ -4852,8 +4809,8 @@ declare const paypal: (options: PayPalOptions) => {
|
|
|
4852
4809
|
idToken: string | undefined;
|
|
4853
4810
|
}>;
|
|
4854
4811
|
refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens>) | ((refreshToken: string) => Promise<{
|
|
4855
|
-
accessToken:
|
|
4856
|
-
refreshToken:
|
|
4812
|
+
accessToken: string | undefined;
|
|
4813
|
+
refreshToken: string | undefined;
|
|
4857
4814
|
accessTokenExpiresAt: Date | undefined;
|
|
4858
4815
|
}>);
|
|
4859
4816
|
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
@@ -4916,7 +4873,7 @@ declare const zoom: (userOptions: ZoomOptions) => {
|
|
|
4916
4873
|
redirectURI: string;
|
|
4917
4874
|
display?: string | undefined;
|
|
4918
4875
|
loginHint?: string | undefined;
|
|
4919
|
-
}) => Promise<
|
|
4876
|
+
}) => Promise<URL>;
|
|
4920
4877
|
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
4921
4878
|
code: string;
|
|
4922
4879
|
redirectURI: string;
|