@descope/react-sdk 2.29.4 → 2.29.5

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.
@@ -1,2 +1,2 @@
1
- "use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.29.4"};
1
+ "use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.29.5"};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.29.4"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
1
+ const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.29.5"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
2
2
  //# sourceMappingURL=constants.js.map
package/dist/index.d.ts CHANGED
@@ -77,7 +77,7 @@ declare const createSdkWrapper: <P extends {
77
77
  webAuthnSupport?: boolean;
78
78
  };
79
79
  lastAuth?: {
80
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
80
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
81
81
  oauthProvider?: string;
82
82
  name?: string;
83
83
  loginId?: string;
@@ -114,7 +114,7 @@ declare const createSdkWrapper: <P extends {
114
114
  outboundAppScopes?: string[];
115
115
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
116
116
  lastAuth?: Omit<{
117
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
117
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
118
118
  oauthProvider?: string;
119
119
  name?: string;
120
120
  loginId?: string;
@@ -699,6 +699,10 @@ declare const createSdkWrapper: <P extends {
699
699
  externalIdentifier?: string;
700
700
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
701
701
  };
702
+ sso: {
703
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
704
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
705
+ };
702
706
  saml: {
703
707
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
704
708
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -831,7 +835,7 @@ declare const createSdkWrapper: <P extends {
831
835
  webAuthnSupport?: boolean;
832
836
  };
833
837
  lastAuth?: {
834
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
838
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
835
839
  oauthProvider?: string;
836
840
  name?: string;
837
841
  loginId?: string;
@@ -868,7 +872,7 @@ declare const createSdkWrapper: <P extends {
868
872
  outboundAppScopes?: string[];
869
873
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
870
874
  lastAuth?: Omit<{
871
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
875
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
872
876
  oauthProvider?: string;
873
877
  name?: string;
874
878
  loginId?: string;
@@ -1453,6 +1457,10 @@ declare const createSdkWrapper: <P extends {
1453
1457
  externalIdentifier?: string;
1454
1458
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1455
1459
  };
1460
+ sso: {
1461
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
1462
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1463
+ };
1456
1464
  saml: {
1457
1465
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
1458
1466
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -1585,7 +1593,7 @@ declare const createSdkWrapper: <P extends {
1585
1593
  webAuthnSupport?: boolean;
1586
1594
  };
1587
1595
  lastAuth?: {
1588
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
1596
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1589
1597
  oauthProvider?: string;
1590
1598
  name?: string;
1591
1599
  loginId?: string;
@@ -1622,7 +1630,7 @@ declare const createSdkWrapper: <P extends {
1622
1630
  outboundAppScopes?: string[];
1623
1631
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1624
1632
  lastAuth?: Omit<{
1625
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
1633
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1626
1634
  oauthProvider?: string;
1627
1635
  name?: string;
1628
1636
  loginId?: string;
@@ -2207,6 +2215,10 @@ declare const createSdkWrapper: <P extends {
2207
2215
  externalIdentifier?: string;
2208
2216
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2209
2217
  };
2218
+ sso: {
2219
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2220
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2221
+ };
2210
2222
  saml: {
2211
2223
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2212
2224
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;