@descope/react-sdk 2.13.2 → 2.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.
@@ -93,7 +93,9 @@ declare const createSdkWrapper: <P extends Omit<{
93
93
  };
94
94
  thirdPartyAppStateId?: string;
95
95
  applicationScopes?: string;
96
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
96
+ outboundAppId?: string;
97
+ outboundAppScopes?: string[];
98
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
97
99
  lastAuth?: Omit<{
98
100
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
99
101
  oauthProvider?: string;
@@ -546,6 +548,12 @@ declare const createSdkWrapper: <P extends Omit<{
546
548
  }>>;
547
549
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
548
550
  };
551
+ outbound: {
552
+ connect: (appId: string, options?: {
553
+ redirectURL?: string;
554
+ scopes?: string[];
555
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
556
+ };
549
557
  saml: {
550
558
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
551
559
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -738,7 +746,9 @@ declare const createSdkWrapper: <P extends Omit<{
738
746
  };
739
747
  thirdPartyAppStateId?: string;
740
748
  applicationScopes?: string;
741
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
749
+ outboundAppId?: string;
750
+ outboundAppScopes?: string[];
751
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
742
752
  lastAuth?: Omit<{
743
753
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
744
754
  oauthProvider?: string;
@@ -1191,6 +1201,12 @@ declare const createSdkWrapper: <P extends Omit<{
1191
1201
  }>>;
1192
1202
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1193
1203
  };
1204
+ outbound: {
1205
+ connect: (appId: string, options?: {
1206
+ redirectURL?: string;
1207
+ scopes?: string[];
1208
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1209
+ };
1194
1210
  saml: {
1195
1211
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1196
1212
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -1383,7 +1399,9 @@ declare const createSdkWrapper: <P extends Omit<{
1383
1399
  };
1384
1400
  thirdPartyAppStateId?: string;
1385
1401
  applicationScopes?: string;
1386
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
1402
+ outboundAppId?: string;
1403
+ outboundAppScopes?: string[];
1404
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1387
1405
  lastAuth?: Omit<{
1388
1406
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
1389
1407
  oauthProvider?: string;
@@ -1836,6 +1854,12 @@ declare const createSdkWrapper: <P extends Omit<{
1836
1854
  }>>;
1837
1855
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1838
1856
  };
1857
+ outbound: {
1858
+ connect: (appId: string, options?: {
1859
+ redirectURL?: string;
1860
+ scopes?: string[];
1861
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1862
+ };
1839
1863
  saml: {
1840
1864
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1841
1865
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -2040,7 +2064,9 @@ export declare const createTempSdk: () => ((({
2040
2064
  };
2041
2065
  thirdPartyAppStateId?: string;
2042
2066
  applicationScopes?: string;
2043
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
2067
+ outboundAppId?: string;
2068
+ outboundAppScopes?: string[];
2069
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2044
2070
  lastAuth?: Omit<{
2045
2071
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
2046
2072
  oauthProvider?: string;
@@ -2493,6 +2519,12 @@ export declare const createTempSdk: () => ((({
2493
2519
  }>>;
2494
2520
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2495
2521
  };
2522
+ outbound: {
2523
+ connect: (appId: string, options?: {
2524
+ redirectURL?: string;
2525
+ scopes?: string[];
2526
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2527
+ };
2496
2528
  saml: {
2497
2529
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2498
2530
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -2685,7 +2717,9 @@ export declare const createTempSdk: () => ((({
2685
2717
  };
2686
2718
  thirdPartyAppStateId?: string;
2687
2719
  applicationScopes?: string;
2688
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
2720
+ outboundAppId?: string;
2721
+ outboundAppScopes?: string[];
2722
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2689
2723
  lastAuth?: Omit<{
2690
2724
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
2691
2725
  oauthProvider?: string;
@@ -3138,6 +3172,12 @@ export declare const createTempSdk: () => ((({
3138
3172
  }>>;
3139
3173
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3140
3174
  };
3175
+ outbound: {
3176
+ connect: (appId: string, options?: {
3177
+ redirectURL?: string;
3178
+ scopes?: string[];
3179
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3180
+ };
3141
3181
  saml: {
3142
3182
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3143
3183
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -3330,7 +3370,9 @@ export declare const createTempSdk: () => ((({
3330
3370
  };
3331
3371
  thirdPartyAppStateId?: string;
3332
3372
  applicationScopes?: string;
3333
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
3373
+ outboundAppId?: string;
3374
+ outboundAppScopes?: string[];
3375
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3334
3376
  lastAuth?: Omit<{
3335
3377
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
3336
3378
  oauthProvider?: string;
@@ -3783,6 +3825,12 @@ export declare const createTempSdk: () => ((({
3783
3825
  }>>;
3784
3826
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3785
3827
  };
3828
+ outbound: {
3829
+ connect: (appId: string, options?: {
3830
+ redirectURL?: string;
3831
+ scopes?: string[];
3832
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3833
+ };
3786
3834
  saml: {
3787
3835
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3788
3836
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -3995,7 +4043,9 @@ export declare const getGlobalSdk: () => ((({
3995
4043
  };
3996
4044
  thirdPartyAppStateId?: string;
3997
4045
  applicationScopes?: string;
3998
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
4046
+ outboundAppId?: string;
4047
+ outboundAppScopes?: string[];
4048
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3999
4049
  lastAuth?: Omit<{
4000
4050
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
4001
4051
  oauthProvider?: string;
@@ -4448,6 +4498,12 @@ export declare const getGlobalSdk: () => ((({
4448
4498
  }>>;
4449
4499
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4450
4500
  };
4501
+ outbound: {
4502
+ connect: (appId: string, options?: {
4503
+ redirectURL?: string;
4504
+ scopes?: string[];
4505
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
4506
+ };
4451
4507
  saml: {
4452
4508
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
4453
4509
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -4640,7 +4696,9 @@ export declare const getGlobalSdk: () => ((({
4640
4696
  };
4641
4697
  thirdPartyAppStateId?: string;
4642
4698
  applicationScopes?: string;
4643
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
4699
+ outboundAppId?: string;
4700
+ outboundAppScopes?: string[];
4701
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
4644
4702
  lastAuth?: Omit<{
4645
4703
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
4646
4704
  oauthProvider?: string;
@@ -5093,6 +5151,12 @@ export declare const getGlobalSdk: () => ((({
5093
5151
  }>>;
5094
5152
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5095
5153
  };
5154
+ outbound: {
5155
+ connect: (appId: string, options?: {
5156
+ redirectURL?: string;
5157
+ scopes?: string[];
5158
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5159
+ };
5096
5160
  saml: {
5097
5161
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5098
5162
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -5285,7 +5349,9 @@ export declare const getGlobalSdk: () => ((({
5285
5349
  };
5286
5350
  thirdPartyAppStateId?: string;
5287
5351
  applicationScopes?: string;
5288
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
5352
+ outboundAppId?: string;
5353
+ outboundAppScopes?: string[];
5354
+ }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5289
5355
  lastAuth?: Omit<{
5290
5356
  authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
5291
5357
  oauthProvider?: string;
@@ -5738,6 +5804,12 @@ export declare const getGlobalSdk: () => ((({
5738
5804
  }>>;
5739
5805
  exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5740
5806
  };
5807
+ outbound: {
5808
+ connect: (appId: string, options?: {
5809
+ redirectURL?: string;
5810
+ scopes?: string[];
5811
+ }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5812
+ };
5741
5813
  saml: {
5742
5814
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5743
5815
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -87,6 +87,8 @@ export type DescopeProps = {
87
87
  debug?: boolean;
88
88
  telemetryKey?: string;
89
89
  redirectUrl?: string;
90
+ outboundAppId?: string;
91
+ outboundAppScopes?: string[];
90
92
  errorTransformer?: (error: {
91
93
  text: string;
92
94
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.13.2",
3
+ "version": "2.14.1",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -49,16 +49,16 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@descope/access-key-management-widget": "0.4.13",
53
52
  "@descope/sdk-helpers": "0.3.0",
54
- "@descope/audit-management-widget": "0.4.13",
55
- "@descope/role-management-widget": "0.3.14",
56
- "@descope/user-management-widget": "0.7.13",
57
- "@descope/user-profile-widget": "0.4.14",
58
- "@descope/applications-portal-widget": "0.3.13",
59
- "@descope/core-js-sdk": "2.41.0",
60
- "@descope/web-js-sdk": "1.30.0",
61
- "@descope/web-component": "3.40.9"
53
+ "@descope/access-key-management-widget": "0.4.15",
54
+ "@descope/audit-management-widget": "0.4.15",
55
+ "@descope/user-profile-widget": "0.4.16",
56
+ "@descope/role-management-widget": "0.3.16",
57
+ "@descope/applications-portal-widget": "0.3.15",
58
+ "@descope/web-js-sdk": "1.31.1",
59
+ "@descope/user-management-widget": "0.7.15",
60
+ "@descope/core-js-sdk": "2.43.0",
61
+ "@descope/web-component": "3.41.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@babel/core": "7.26.0",