@clerk/types 4.96.0 → 4.97.0-canary.v20251030075126
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/package.json +19 -13
- package/src/index.d.mts +8 -0
- package/src/index.d.ts +8 -0
- package/src/index.js +8 -0
- package/src/index.mjs +8 -0
- package/dist/esm/index.js +0 -247
- package/dist/esm/index.js.map +0 -1
- package/dist/index.d.mts +0 -9937
- package/dist/index.d.ts +0 -9937
- package/dist/index.js +0 -279
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.97.0-canary.v20251030075126",
|
|
4
4
|
"description": "Typings for Clerk libraries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clerk",
|
|
@@ -23,14 +23,26 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"author": "Clerk",
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./src/index.d.mts",
|
|
30
|
+
"default": "./src/index.mjs"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./src/index.d.ts",
|
|
34
|
+
"default": "./src/index.js"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"main": "src/index.js",
|
|
39
|
+
"module": "src/index.js",
|
|
40
|
+
"types": "src/index.d.ts",
|
|
29
41
|
"files": [
|
|
30
|
-
"
|
|
42
|
+
"src"
|
|
31
43
|
],
|
|
32
44
|
"dependencies": {
|
|
33
|
-
"
|
|
45
|
+
"@clerk/shared": "^3.30.0-canary.v20251030075126"
|
|
34
46
|
},
|
|
35
47
|
"devDependencies": {},
|
|
36
48
|
"engines": {
|
|
@@ -40,14 +52,8 @@
|
|
|
40
52
|
"access": "public"
|
|
41
53
|
},
|
|
42
54
|
"scripts": {
|
|
43
|
-
"build": "tsup --env.NODE_ENV production",
|
|
44
|
-
"build:declarations": "tsc -p tsconfig.declarations.json",
|
|
45
|
-
"clean": "rimraf ./dist",
|
|
46
|
-
"dev": "tsup --watch",
|
|
47
55
|
"format": "node ../../scripts/format-package.mjs",
|
|
48
56
|
"format:check": "node ../../scripts/format-package.mjs --check",
|
|
49
|
-
"lint": "
|
|
50
|
-
"lint:attw": "attw --pack . --profile node16",
|
|
51
|
-
"publish:local": "pnpm yalc push --replace --sig"
|
|
57
|
+
"lint:attw": "attw --pack . --profile node16"
|
|
52
58
|
}
|
|
53
59
|
}
|
package/src/index.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@clerk/types` is now merged with `@clerk/shared`
|
|
3
|
+
* Please import from `@clerk/shared/types` instead.
|
|
4
|
+
*
|
|
5
|
+
* This export exists for backwards compatibility
|
|
6
|
+
* until we drop the package completely with the next major release.
|
|
7
|
+
*/
|
|
8
|
+
export type * from '@clerk/shared/types';
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@clerk/types` is now merged with `@clerk/shared`
|
|
3
|
+
* Please import from `@clerk/shared/types` instead.
|
|
4
|
+
*
|
|
5
|
+
* This export exists for backwards compatibility
|
|
6
|
+
* until we drop the package completely with the next major release.
|
|
7
|
+
*/
|
|
8
|
+
export type * from '@clerk/shared/types';
|
package/src/index.js
ADDED
package/src/index.mjs
ADDED
package/dist/esm/index.js
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
// src/runtime-values.ts
|
|
2
|
-
var WEB3_PROVIDERS = [
|
|
3
|
-
{
|
|
4
|
-
provider: "metamask",
|
|
5
|
-
strategy: "web3_metamask_signature",
|
|
6
|
-
name: "MetaMask"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
provider: "base",
|
|
10
|
-
strategy: "web3_base_signature",
|
|
11
|
-
name: "Base"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
provider: "coinbase_wallet",
|
|
15
|
-
strategy: "web3_coinbase_wallet_signature",
|
|
16
|
-
name: "Coinbase Wallet"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
provider: "okx_wallet",
|
|
20
|
-
strategy: "web3_okx_wallet_signature",
|
|
21
|
-
name: "OKX Wallet"
|
|
22
|
-
}
|
|
23
|
-
];
|
|
24
|
-
function getWeb3ProviderData(params) {
|
|
25
|
-
const { provider, strategy } = params;
|
|
26
|
-
if (provider) {
|
|
27
|
-
return WEB3_PROVIDERS.find((p) => p.provider == provider);
|
|
28
|
-
}
|
|
29
|
-
return WEB3_PROVIDERS.find((p) => p.strategy == strategy);
|
|
30
|
-
}
|
|
31
|
-
var OAUTH_PROVIDERS = [
|
|
32
|
-
{
|
|
33
|
-
provider: "google",
|
|
34
|
-
strategy: "oauth_google",
|
|
35
|
-
name: "Google",
|
|
36
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/google"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
provider: "discord",
|
|
40
|
-
strategy: "oauth_discord",
|
|
41
|
-
name: "Discord",
|
|
42
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/discord"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
provider: "facebook",
|
|
46
|
-
strategy: "oauth_facebook",
|
|
47
|
-
name: "Facebook",
|
|
48
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/facebook"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
provider: "twitch",
|
|
52
|
-
strategy: "oauth_twitch",
|
|
53
|
-
name: "Twitch",
|
|
54
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/twitch"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
provider: "twitter",
|
|
58
|
-
strategy: "oauth_twitter",
|
|
59
|
-
name: "Twitter",
|
|
60
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/twitter"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
provider: "microsoft",
|
|
64
|
-
strategy: "oauth_microsoft",
|
|
65
|
-
name: "Microsoft",
|
|
66
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/microsoft"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
provider: "tiktok",
|
|
70
|
-
strategy: "oauth_tiktok",
|
|
71
|
-
name: "TikTok",
|
|
72
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/tiktok"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
provider: "linkedin",
|
|
76
|
-
strategy: "oauth_linkedin",
|
|
77
|
-
name: "LinkedIn",
|
|
78
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/linkedin"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
provider: "linkedin_oidc",
|
|
82
|
-
strategy: "oauth_linkedin_oidc",
|
|
83
|
-
name: "LinkedIn",
|
|
84
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/linkedin-oidc"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
provider: "github",
|
|
88
|
-
strategy: "oauth_github",
|
|
89
|
-
name: "GitHub",
|
|
90
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/github"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
provider: "gitlab",
|
|
94
|
-
strategy: "oauth_gitlab",
|
|
95
|
-
name: "GitLab",
|
|
96
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/gitlab"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
provider: "dropbox",
|
|
100
|
-
strategy: "oauth_dropbox",
|
|
101
|
-
name: "Dropbox",
|
|
102
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/dropbox"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
provider: "atlassian",
|
|
106
|
-
strategy: "oauth_atlassian",
|
|
107
|
-
name: "Atlassian",
|
|
108
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/atlassian"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
provider: "bitbucket",
|
|
112
|
-
strategy: "oauth_bitbucket",
|
|
113
|
-
name: "Bitbucket",
|
|
114
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/bitbucket"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
provider: "hubspot",
|
|
118
|
-
strategy: "oauth_hubspot",
|
|
119
|
-
name: "HubSpot",
|
|
120
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/hubspot"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
provider: "notion",
|
|
124
|
-
strategy: "oauth_notion",
|
|
125
|
-
name: "Notion",
|
|
126
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/notion"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
provider: "apple",
|
|
130
|
-
strategy: "oauth_apple",
|
|
131
|
-
name: "Apple",
|
|
132
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/apple"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
provider: "line",
|
|
136
|
-
strategy: "oauth_line",
|
|
137
|
-
name: "LINE",
|
|
138
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/line"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
provider: "instagram",
|
|
142
|
-
strategy: "oauth_instagram",
|
|
143
|
-
name: "Instagram",
|
|
144
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/instagram"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
provider: "coinbase",
|
|
148
|
-
strategy: "oauth_coinbase",
|
|
149
|
-
name: "Coinbase",
|
|
150
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/coinbase"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
provider: "spotify",
|
|
154
|
-
strategy: "oauth_spotify",
|
|
155
|
-
name: "Spotify",
|
|
156
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/spotify"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
provider: "xero",
|
|
160
|
-
strategy: "oauth_xero",
|
|
161
|
-
name: "Xero",
|
|
162
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/xero"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
provider: "box",
|
|
166
|
-
strategy: "oauth_box",
|
|
167
|
-
name: "Box",
|
|
168
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/box"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
provider: "slack",
|
|
172
|
-
strategy: "oauth_slack",
|
|
173
|
-
name: "Slack",
|
|
174
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/slack"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
provider: "linear",
|
|
178
|
-
strategy: "oauth_linear",
|
|
179
|
-
name: "Linear",
|
|
180
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/linear"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
provider: "x",
|
|
184
|
-
strategy: "oauth_x",
|
|
185
|
-
name: "X / Twitter",
|
|
186
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/x-twitter-v2"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
provider: "enstall",
|
|
190
|
-
strategy: "oauth_enstall",
|
|
191
|
-
name: "Enstall",
|
|
192
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/enstall"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
provider: "huggingface",
|
|
196
|
-
strategy: "oauth_huggingface",
|
|
197
|
-
name: "Hugging Face",
|
|
198
|
-
docsUrl: "https://clerk.com/docs/authentication/social-connections/huggingface"
|
|
199
|
-
}
|
|
200
|
-
];
|
|
201
|
-
function getOAuthProviderData(params) {
|
|
202
|
-
const { provider, strategy } = params;
|
|
203
|
-
if (provider) {
|
|
204
|
-
return OAUTH_PROVIDERS.find((oauth_provider) => oauth_provider.provider == provider);
|
|
205
|
-
}
|
|
206
|
-
return OAUTH_PROVIDERS.find((oauth_provider) => oauth_provider.strategy == strategy);
|
|
207
|
-
}
|
|
208
|
-
function sortedOAuthProviders(sortingArray) {
|
|
209
|
-
return OAUTH_PROVIDERS.slice().sort((a, b) => {
|
|
210
|
-
let aPos = sortingArray.indexOf(a.strategy);
|
|
211
|
-
if (aPos == -1) {
|
|
212
|
-
aPos = Number.MAX_SAFE_INTEGER;
|
|
213
|
-
}
|
|
214
|
-
let bPos = sortingArray.indexOf(b.strategy);
|
|
215
|
-
if (bPos == -1) {
|
|
216
|
-
bPos = Number.MAX_SAFE_INTEGER;
|
|
217
|
-
}
|
|
218
|
-
return aPos - bPos;
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
var SAML_IDPS = {
|
|
222
|
-
saml_okta: {
|
|
223
|
-
name: "Okta Workforce",
|
|
224
|
-
logo: "okta"
|
|
225
|
-
},
|
|
226
|
-
saml_google: {
|
|
227
|
-
name: "Google Workspace",
|
|
228
|
-
logo: "google"
|
|
229
|
-
},
|
|
230
|
-
saml_microsoft: {
|
|
231
|
-
name: "Microsoft Entra ID (Formerly AD)",
|
|
232
|
-
logo: "azure"
|
|
233
|
-
},
|
|
234
|
-
saml_custom: {
|
|
235
|
-
name: "SAML",
|
|
236
|
-
logo: "saml"
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
export {
|
|
240
|
-
OAUTH_PROVIDERS,
|
|
241
|
-
SAML_IDPS,
|
|
242
|
-
WEB3_PROVIDERS,
|
|
243
|
-
getOAuthProviderData,
|
|
244
|
-
getWeb3ProviderData,
|
|
245
|
-
sortedOAuthProviders
|
|
246
|
-
};
|
|
247
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/runtime-values.ts"],"sourcesContent":["import type { OAuthProvider, OAuthProviderData } from './oauth';\nimport type { SamlIdpMap } from './saml';\nimport type { OAuthStrategy, Web3Strategy } from './strategies';\nimport type { Web3Provider, Web3ProviderData } from './web3';\n\n/**\n * @deprecated Use `import { WEB3_PROVIDERS } from \"@clerk/shared/web3\"` instead.\n *\n * @hidden\n */\nexport const WEB3_PROVIDERS: Web3ProviderData[] = [\n {\n provider: 'metamask',\n strategy: 'web3_metamask_signature',\n name: 'MetaMask',\n },\n {\n provider: 'base',\n strategy: 'web3_base_signature',\n name: 'Base',\n },\n {\n provider: 'coinbase_wallet',\n strategy: 'web3_coinbase_wallet_signature',\n name: 'Coinbase Wallet',\n },\n {\n provider: 'okx_wallet',\n strategy: 'web3_okx_wallet_signature',\n name: 'OKX Wallet',\n },\n];\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getWeb3ProviderData(params: {\n provider?: Web3Provider;\n strategy?: Web3Strategy;\n}): Web3ProviderData | undefined | null {\n const { provider, strategy } = params;\n if (provider) {\n return WEB3_PROVIDERS.find(p => p.provider == provider);\n }\n\n return WEB3_PROVIDERS.find(p => p.strategy == strategy);\n}\n\n/**\n * @deprecated Use `import { OAUTH_PROVIDERS } from \"@clerk/shared/oauth\"` instead.\n *\n * @hidden\n */\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n];\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getOAuthProviderData(params: {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}): OAuthProviderData | undefined | null {\n const { provider, strategy } = params;\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function sortedOAuthProviders(sortingArray: OAuthStrategy[]) {\n return OAUTH_PROVIDERS.slice().sort((a, b) => {\n let aPos = sortingArray.indexOf(a.strategy);\n if (aPos == -1) {\n aPos = Number.MAX_SAFE_INTEGER;\n }\n\n let bPos = sortingArray.indexOf(b.strategy);\n if (bPos == -1) {\n bPos = Number.MAX_SAFE_INTEGER;\n }\n\n return aPos - bPos;\n });\n}\n\n/**\n * @deprecated Use `import { SAML_IDPS } from \"@clerk/shared/saml\"` instead.\n *\n * @hidden\n */\nexport const SAML_IDPS: SamlIdpMap = {\n saml_okta: {\n name: 'Okta Workforce',\n logo: 'okta',\n },\n saml_google: {\n name: 'Google Workspace',\n logo: 'google',\n },\n saml_microsoft: {\n name: 'Microsoft Entra ID (Formerly AD)',\n logo: 'azure',\n },\n saml_custom: {\n name: 'SAML',\n logo: 'saml',\n },\n};\n"],"mappings":";AAUO,IAAM,iBAAqC;AAAA,EAChD;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AACF;AAOO,SAAS,oBAAoB,QAGI;AACtC,QAAM,EAAE,UAAU,SAAS,IAAI;AAC/B,MAAI,UAAU;AACZ,WAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AAAA,EACxD;AAEA,SAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AACxD;AAOO,IAAM,kBAAuC;AAAA,EA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