@descope/react-sdk 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,50 +54,7 @@ declare const createSdkWrapper: <P extends {
54
54
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
55
55
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
56
56
  flow: {
57
- start: (flowId: string, options?: Pick<{
58
- redirectUrl?: string;
59
- location?: string;
60
- tenant?: string;
61
- deviceInfo?: {
62
- webAuthnSupport?: boolean;
63
- };
64
- lastAuth?: {
65
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
66
- oauthProvider?: string;
67
- name?: string;
68
- loginId?: string;
69
- };
70
- redirectAuth?: {
71
- callbackUrl: string;
72
- codeChallenge: string;
73
- };
74
- oidcIdpStateId?: string;
75
- preview?: boolean;
76
- samlIdpStateId?: string;
77
- wsfedIdpStateId?: string;
78
- samlIdpUsername?: string;
79
- ssoAppId?: string;
80
- customAppId?: string;
81
- thirdPartyAppId?: string;
82
- oidcLoginHint?: string;
83
- abTestingKey?: number;
84
- startOptionsVersion?: number;
85
- client?: Record<string, any>;
86
- locale?: string;
87
- oidcPrompt?: string;
88
- oidcErrorRedirectUri?: string;
89
- oidcResource?: string;
90
- nativeOptions?: {
91
- platform: "ios" | "android";
92
- oauthProvider?: string;
93
- oauthRedirect?: string;
94
- externalAuthRedirect?: string;
95
- };
96
- thirdPartyAppStateId?: string;
97
- applicationScopes?: string;
98
- outboundAppId?: string;
99
- outboundAppScopes?: string[];
100
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
57
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
101
58
  lastAuth?: Omit<{
102
59
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
103
60
  oauthProvider?: string;
@@ -109,7 +66,7 @@ declare const createSdkWrapper: <P extends {
109
66
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
110
67
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
111
68
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
112
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
69
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
113
70
  };
114
71
  webauthn: {
115
72
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -816,50 +773,7 @@ declare const createSdkWrapper: <P extends {
816
773
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
817
774
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
818
775
  flow: {
819
- start: (flowId: string, options?: Pick<{
820
- redirectUrl?: string;
821
- location?: string;
822
- tenant?: string;
823
- deviceInfo?: {
824
- webAuthnSupport?: boolean;
825
- };
826
- lastAuth?: {
827
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
828
- oauthProvider?: string;
829
- name?: string;
830
- loginId?: string;
831
- };
832
- redirectAuth?: {
833
- callbackUrl: string;
834
- codeChallenge: string;
835
- };
836
- oidcIdpStateId?: string;
837
- preview?: boolean;
838
- samlIdpStateId?: string;
839
- wsfedIdpStateId?: string;
840
- samlIdpUsername?: string;
841
- ssoAppId?: string;
842
- customAppId?: string;
843
- thirdPartyAppId?: string;
844
- oidcLoginHint?: string;
845
- abTestingKey?: number;
846
- startOptionsVersion?: number;
847
- client?: Record<string, any>;
848
- locale?: string;
849
- oidcPrompt?: string;
850
- oidcErrorRedirectUri?: string;
851
- oidcResource?: string;
852
- nativeOptions?: {
853
- platform: "ios" | "android";
854
- oauthProvider?: string;
855
- oauthRedirect?: string;
856
- externalAuthRedirect?: string;
857
- };
858
- thirdPartyAppStateId?: string;
859
- applicationScopes?: string;
860
- outboundAppId?: string;
861
- outboundAppScopes?: string[];
862
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
776
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
863
777
  lastAuth?: Omit<{
864
778
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
865
779
  oauthProvider?: string;
@@ -871,7 +785,7 @@ declare const createSdkWrapper: <P extends {
871
785
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
872
786
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
873
787
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
874
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
788
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
875
789
  };
876
790
  webauthn: {
877
791
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -1578,50 +1492,7 @@ declare const createSdkWrapper: <P extends {
1578
1492
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1579
1493
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1580
1494
  flow: {
1581
- start: (flowId: string, options?: Pick<{
1582
- redirectUrl?: string;
1583
- location?: string;
1584
- tenant?: string;
1585
- deviceInfo?: {
1586
- webAuthnSupport?: boolean;
1587
- };
1588
- lastAuth?: {
1589
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1590
- oauthProvider?: string;
1591
- name?: string;
1592
- loginId?: string;
1593
- };
1594
- redirectAuth?: {
1595
- callbackUrl: string;
1596
- codeChallenge: string;
1597
- };
1598
- oidcIdpStateId?: string;
1599
- preview?: boolean;
1600
- samlIdpStateId?: string;
1601
- wsfedIdpStateId?: string;
1602
- samlIdpUsername?: string;
1603
- ssoAppId?: string;
1604
- customAppId?: string;
1605
- thirdPartyAppId?: string;
1606
- oidcLoginHint?: string;
1607
- abTestingKey?: number;
1608
- startOptionsVersion?: number;
1609
- client?: Record<string, any>;
1610
- locale?: string;
1611
- oidcPrompt?: string;
1612
- oidcErrorRedirectUri?: string;
1613
- oidcResource?: string;
1614
- nativeOptions?: {
1615
- platform: "ios" | "android";
1616
- oauthProvider?: string;
1617
- oauthRedirect?: string;
1618
- externalAuthRedirect?: string;
1619
- };
1620
- thirdPartyAppStateId?: string;
1621
- applicationScopes?: string;
1622
- outboundAppId?: string;
1623
- outboundAppScopes?: string[];
1624
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1495
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1625
1496
  lastAuth?: Omit<{
1626
1497
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1627
1498
  oauthProvider?: string;
@@ -1633,7 +1504,7 @@ declare const createSdkWrapper: <P extends {
1633
1504
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1634
1505
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
1635
1506
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
1636
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1507
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1637
1508
  };
1638
1509
  webauthn: {
1639
1510
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -2355,50 +2226,7 @@ export declare const createTempSdk: () => (((({
2355
2226
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2356
2227
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2357
2228
  flow: {
2358
- start: (flowId: string, options?: Pick<{
2359
- redirectUrl?: string;
2360
- location?: string;
2361
- tenant?: string;
2362
- deviceInfo?: {
2363
- webAuthnSupport?: boolean;
2364
- };
2365
- lastAuth?: {
2366
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
2367
- oauthProvider?: string;
2368
- name?: string;
2369
- loginId?: string;
2370
- };
2371
- redirectAuth?: {
2372
- callbackUrl: string;
2373
- codeChallenge: string;
2374
- };
2375
- oidcIdpStateId?: string;
2376
- preview?: boolean;
2377
- samlIdpStateId?: string;
2378
- wsfedIdpStateId?: string;
2379
- samlIdpUsername?: string;
2380
- ssoAppId?: string;
2381
- customAppId?: string;
2382
- thirdPartyAppId?: string;
2383
- oidcLoginHint?: string;
2384
- abTestingKey?: number;
2385
- startOptionsVersion?: number;
2386
- client?: Record<string, any>;
2387
- locale?: string;
2388
- oidcPrompt?: string;
2389
- oidcErrorRedirectUri?: string;
2390
- oidcResource?: string;
2391
- nativeOptions?: {
2392
- platform: "ios" | "android";
2393
- oauthProvider?: string;
2394
- oauthRedirect?: string;
2395
- externalAuthRedirect?: string;
2396
- };
2397
- thirdPartyAppStateId?: string;
2398
- applicationScopes?: string;
2399
- outboundAppId?: string;
2400
- outboundAppScopes?: string[];
2401
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2229
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2402
2230
  lastAuth?: Omit<{
2403
2231
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
2404
2232
  oauthProvider?: string;
@@ -2410,7 +2238,7 @@ export declare const createTempSdk: () => (((({
2410
2238
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2411
2239
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
2412
2240
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
2413
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2241
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2414
2242
  };
2415
2243
  webauthn: {
2416
2244
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -3117,50 +2945,7 @@ export declare const createTempSdk: () => (((({
3117
2945
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3118
2946
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3119
2947
  flow: {
3120
- start: (flowId: string, options?: Pick<{
3121
- redirectUrl?: string;
3122
- location?: string;
3123
- tenant?: string;
3124
- deviceInfo?: {
3125
- webAuthnSupport?: boolean;
3126
- };
3127
- lastAuth?: {
3128
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3129
- oauthProvider?: string;
3130
- name?: string;
3131
- loginId?: string;
3132
- };
3133
- redirectAuth?: {
3134
- callbackUrl: string;
3135
- codeChallenge: string;
3136
- };
3137
- oidcIdpStateId?: string;
3138
- preview?: boolean;
3139
- samlIdpStateId?: string;
3140
- wsfedIdpStateId?: string;
3141
- samlIdpUsername?: string;
3142
- ssoAppId?: string;
3143
- customAppId?: string;
3144
- thirdPartyAppId?: string;
3145
- oidcLoginHint?: string;
3146
- abTestingKey?: number;
3147
- startOptionsVersion?: number;
3148
- client?: Record<string, any>;
3149
- locale?: string;
3150
- oidcPrompt?: string;
3151
- oidcErrorRedirectUri?: string;
3152
- oidcResource?: string;
3153
- nativeOptions?: {
3154
- platform: "ios" | "android";
3155
- oauthProvider?: string;
3156
- oauthRedirect?: string;
3157
- externalAuthRedirect?: string;
3158
- };
3159
- thirdPartyAppStateId?: string;
3160
- applicationScopes?: string;
3161
- outboundAppId?: string;
3162
- outboundAppScopes?: string[];
3163
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2948
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3164
2949
  lastAuth?: Omit<{
3165
2950
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3166
2951
  oauthProvider?: string;
@@ -3172,7 +2957,7 @@ export declare const createTempSdk: () => (((({
3172
2957
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3173
2958
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
3174
2959
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
3175
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2960
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3176
2961
  };
3177
2962
  webauthn: {
3178
2963
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -3879,50 +3664,7 @@ export declare const createTempSdk: () => (((({
3879
3664
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3880
3665
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3881
3666
  flow: {
3882
- start: (flowId: string, options?: Pick<{
3883
- redirectUrl?: string;
3884
- location?: string;
3885
- tenant?: string;
3886
- deviceInfo?: {
3887
- webAuthnSupport?: boolean;
3888
- };
3889
- lastAuth?: {
3890
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3891
- oauthProvider?: string;
3892
- name?: string;
3893
- loginId?: string;
3894
- };
3895
- redirectAuth?: {
3896
- callbackUrl: string;
3897
- codeChallenge: string;
3898
- };
3899
- oidcIdpStateId?: string;
3900
- preview?: boolean;
3901
- samlIdpStateId?: string;
3902
- wsfedIdpStateId?: string;
3903
- samlIdpUsername?: string;
3904
- ssoAppId?: string;
3905
- customAppId?: string;
3906
- thirdPartyAppId?: string;
3907
- oidcLoginHint?: string;
3908
- abTestingKey?: number;
3909
- startOptionsVersion?: number;
3910
- client?: Record<string, any>;
3911
- locale?: string;
3912
- oidcPrompt?: string;
3913
- oidcErrorRedirectUri?: string;
3914
- oidcResource?: string;
3915
- nativeOptions?: {
3916
- platform: "ios" | "android";
3917
- oauthProvider?: string;
3918
- oauthRedirect?: string;
3919
- externalAuthRedirect?: string;
3920
- };
3921
- thirdPartyAppStateId?: string;
3922
- applicationScopes?: string;
3923
- outboundAppId?: string;
3924
- outboundAppScopes?: string[];
3925
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3667
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3926
3668
  lastAuth?: Omit<{
3927
3669
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3928
3670
  oauthProvider?: string;
@@ -3934,7 +3676,7 @@ export declare const createTempSdk: () => (((({
3934
3676
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3935
3677
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
3936
3678
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
3937
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3679
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3938
3680
  };
3939
3681
  webauthn: {
3940
3682
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -4664,50 +4406,7 @@ export declare const getGlobalSdk: () => (((({
4664
4406
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4665
4407
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
4666
4408
  flow: {
4667
- start: (flowId: string, options?: Pick<{
4668
- redirectUrl?: string;
4669
- location?: string;
4670
- tenant?: string;
4671
- deviceInfo?: {
4672
- webAuthnSupport?: boolean;
4673
- };
4674
- lastAuth?: {
4675
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
4676
- oauthProvider?: string;
4677
- name?: string;
4678
- loginId?: string;
4679
- };
4680
- redirectAuth?: {
4681
- callbackUrl: string;
4682
- codeChallenge: string;
4683
- };
4684
- oidcIdpStateId?: string;
4685
- preview?: boolean;
4686
- samlIdpStateId?: string;
4687
- wsfedIdpStateId?: string;
4688
- samlIdpUsername?: string;
4689
- ssoAppId?: string;
4690
- customAppId?: string;
4691
- thirdPartyAppId?: string;
4692
- oidcLoginHint?: string;
4693
- abTestingKey?: number;
4694
- startOptionsVersion?: number;
4695
- client?: Record<string, any>;
4696
- locale?: string;
4697
- oidcPrompt?: string;
4698
- oidcErrorRedirectUri?: string;
4699
- oidcResource?: string;
4700
- nativeOptions?: {
4701
- platform: "ios" | "android";
4702
- oauthProvider?: string;
4703
- oauthRedirect?: string;
4704
- externalAuthRedirect?: string;
4705
- };
4706
- thirdPartyAppStateId?: string;
4707
- applicationScopes?: string;
4708
- outboundAppId?: string;
4709
- outboundAppScopes?: string[];
4710
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
4409
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
4711
4410
  lastAuth?: Omit<{
4712
4411
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
4713
4412
  oauthProvider?: string;
@@ -4719,7 +4418,7 @@ export declare const getGlobalSdk: () => (((({
4719
4418
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
4720
4419
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
4721
4420
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
4722
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
4421
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
4723
4422
  };
4724
4423
  webauthn: {
4725
4424
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -5426,50 +5125,7 @@ export declare const getGlobalSdk: () => (((({
5426
5125
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5427
5126
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
5428
5127
  flow: {
5429
- start: (flowId: string, options?: Pick<{
5430
- redirectUrl?: string;
5431
- location?: string;
5432
- tenant?: string;
5433
- deviceInfo?: {
5434
- webAuthnSupport?: boolean;
5435
- };
5436
- lastAuth?: {
5437
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
5438
- oauthProvider?: string;
5439
- name?: string;
5440
- loginId?: string;
5441
- };
5442
- redirectAuth?: {
5443
- callbackUrl: string;
5444
- codeChallenge: string;
5445
- };
5446
- oidcIdpStateId?: string;
5447
- preview?: boolean;
5448
- samlIdpStateId?: string;
5449
- wsfedIdpStateId?: string;
5450
- samlIdpUsername?: string;
5451
- ssoAppId?: string;
5452
- customAppId?: string;
5453
- thirdPartyAppId?: string;
5454
- oidcLoginHint?: string;
5455
- abTestingKey?: number;
5456
- startOptionsVersion?: number;
5457
- client?: Record<string, any>;
5458
- locale?: string;
5459
- oidcPrompt?: string;
5460
- oidcErrorRedirectUri?: string;
5461
- oidcResource?: string;
5462
- nativeOptions?: {
5463
- platform: "ios" | "android";
5464
- oauthProvider?: string;
5465
- oauthRedirect?: string;
5466
- externalAuthRedirect?: string;
5467
- };
5468
- thirdPartyAppStateId?: string;
5469
- applicationScopes?: string;
5470
- outboundAppId?: string;
5471
- outboundAppScopes?: string[];
5472
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5128
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5473
5129
  lastAuth?: Omit<{
5474
5130
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
5475
5131
  oauthProvider?: string;
@@ -5481,7 +5137,7 @@ export declare const getGlobalSdk: () => (((({
5481
5137
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
5482
5138
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
5483
5139
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
5484
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
5140
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
5485
5141
  };
5486
5142
  webauthn: {
5487
5143
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -6188,50 +5844,7 @@ export declare const getGlobalSdk: () => (((({
6188
5844
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6189
5845
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
6190
5846
  flow: {
6191
- start: (flowId: string, options?: Pick<{
6192
- redirectUrl?: string;
6193
- location?: string;
6194
- tenant?: string;
6195
- deviceInfo?: {
6196
- webAuthnSupport?: boolean;
6197
- };
6198
- lastAuth?: {
6199
- authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
6200
- oauthProvider?: string;
6201
- name?: string;
6202
- loginId?: string;
6203
- };
6204
- redirectAuth?: {
6205
- callbackUrl: string;
6206
- codeChallenge: string;
6207
- };
6208
- oidcIdpStateId?: string;
6209
- preview?: boolean;
6210
- samlIdpStateId?: string;
6211
- wsfedIdpStateId?: string;
6212
- samlIdpUsername?: string;
6213
- ssoAppId?: string;
6214
- customAppId?: string;
6215
- thirdPartyAppId?: string;
6216
- oidcLoginHint?: string;
6217
- abTestingKey?: number;
6218
- startOptionsVersion?: number;
6219
- client?: Record<string, any>;
6220
- locale?: string;
6221
- oidcPrompt?: string;
6222
- oidcErrorRedirectUri?: string;
6223
- oidcResource?: string;
6224
- nativeOptions?: {
6225
- platform: "ios" | "android";
6226
- oauthProvider?: string;
6227
- oauthRedirect?: string;
6228
- externalAuthRedirect?: string;
6229
- };
6230
- thirdPartyAppStateId?: string;
6231
- applicationScopes?: string;
6232
- outboundAppId?: string;
6233
- outboundAppScopes?: string[];
6234
- }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5847
+ start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
6235
5848
  lastAuth?: Omit<{
6236
5849
  authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
6237
5850
  oauthProvider?: string;
@@ -6243,7 +5856,7 @@ export declare const getGlobalSdk: () => (((({
6243
5856
  }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
6244
5857
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
6245
5858
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
6246
- }, isCustomScreen?: any) => Promise<_1.SdkResponse<_1.FlowResponse>>;
5859
+ }, isCustomScreen?: any, options?: _1.FlowNextOptions) => Promise<_1.SdkResponse<_1.FlowResponse>>;
6247
5860
  };
6248
5861
  webauthn: {
6249
5862
  signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
@@ -97,6 +97,7 @@ export type DescopeProps = {
97
97
  autoFocus?: AutoFocusOptions;
98
98
  validateOnBlur?: boolean;
99
99
  restartOnError?: boolean;
100
+ sendSessionToken?: boolean;
100
101
  debug?: boolean;
101
102
  telemetryKey?: string;
102
103
  redirectUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -50,17 +50,17 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@descope/sdk-helpers": "0.9.0",
53
- "@descope/audit-management-widget": "0.8.12",
54
- "@descope/access-key-management-widget": "0.9.12",
55
- "@descope/role-management-widget": "0.9.12",
56
- "@descope/user-management-widget": "0.17.2",
57
- "@descope/user-profile-widget": "0.17.0",
58
- "@descope/applications-portal-widget": "0.8.12",
59
- "@descope/web-component": "4.2.0",
60
- "@descope/web-js-sdk": "1.51.6",
61
- "@descope/outbound-applications-widget": "0.5.14",
62
- "@descope/core-js-sdk": "2.69.0",
63
- "@descope/tenant-profile-widget": "0.8.14"
53
+ "@descope/access-key-management-widget": "0.10.0",
54
+ "@descope/audit-management-widget": "0.9.0",
55
+ "@descope/role-management-widget": "0.10.0",
56
+ "@descope/user-management-widget": "0.18.0",
57
+ "@descope/outbound-applications-widget": "0.6.0",
58
+ "@descope/user-profile-widget": "0.18.0",
59
+ "@descope/web-component": "4.3.0",
60
+ "@descope/web-js-sdk": "1.52.0",
61
+ "@descope/core-js-sdk": "2.70.0",
62
+ "@descope/applications-portal-widget": "0.9.0",
63
+ "@descope/tenant-profile-widget": "0.9.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.26.0",