@okta/okta-auth-js 7.0.0 → 7.1.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.
Files changed (569) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -0
  3. package/cjs/authn/AuthnTransactionImpl.js +6 -8
  4. package/cjs/authn/AuthnTransactionImpl.js.map +1 -1
  5. package/cjs/authn/api.js +3 -18
  6. package/cjs/authn/api.js.map +1 -1
  7. package/cjs/authn/factory.js +1 -7
  8. package/cjs/authn/factory.js.map +1 -1
  9. package/cjs/authn/index.js +0 -5
  10. package/cjs/authn/index.js.map +1 -1
  11. package/cjs/authn/mixin.js +14 -22
  12. package/cjs/authn/mixin.js.map +1 -1
  13. package/cjs/authn/util/flattenEmbedded.js +5 -12
  14. package/cjs/authn/util/flattenEmbedded.js.map +1 -1
  15. package/cjs/authn/util/link2fn.js +0 -22
  16. package/cjs/authn/util/link2fn.js.map +1 -1
  17. package/cjs/authn/util/links2fns.js +0 -12
  18. package/cjs/authn/util/links2fns.js.map +1 -1
  19. package/cjs/authn/util/poll.js +9 -27
  20. package/cjs/authn/util/poll.js.map +1 -1
  21. package/cjs/authn/util/stateToken.js +3 -4
  22. package/cjs/authn/util/stateToken.js.map +1 -1
  23. package/cjs/base/factory.js +6 -14
  24. package/cjs/base/factory.js.map +1 -1
  25. package/cjs/base/index.js +0 -5
  26. package/cjs/base/index.js.map +1 -1
  27. package/cjs/base/options.js +1 -2
  28. package/cjs/base/options.js.map +1 -1
  29. package/cjs/browser/browserStorage.js +15 -43
  30. package/cjs/browser/browserStorage.js.map +1 -1
  31. package/cjs/browser/fingerprint.js +3 -15
  32. package/cjs/browser/fingerprint.js.map +1 -1
  33. package/cjs/clock.js +5 -7
  34. package/cjs/clock.js.map +1 -1
  35. package/cjs/constants.js +4 -3
  36. package/cjs/constants.js.map +1 -1
  37. package/cjs/core/AuthStateManager.js +24 -48
  38. package/cjs/core/AuthStateManager.js.map +1 -1
  39. package/cjs/core/ServiceManager/browser.js +13 -33
  40. package/cjs/core/ServiceManager/browser.js.map +1 -1
  41. package/cjs/core/ServiceManager/index.js +0 -1
  42. package/cjs/core/ServiceManager/index.js.map +1 -1
  43. package/cjs/core/ServiceManager/node.js +3 -9
  44. package/cjs/core/ServiceManager/node.js.map +1 -1
  45. package/cjs/core/factory.js +0 -7
  46. package/cjs/core/factory.js.map +1 -1
  47. package/cjs/core/index.js +0 -13
  48. package/cjs/core/index.js.map +1 -1
  49. package/cjs/core/mixin.js +16 -20
  50. package/cjs/core/mixin.js.map +1 -1
  51. package/cjs/core/options.js +1 -3
  52. package/cjs/core/options.js.map +1 -1
  53. package/cjs/core/storage.js +0 -2
  54. package/cjs/core/storage.js.map +1 -1
  55. package/cjs/core/types/index.js +0 -5
  56. package/cjs/core/types/index.js.map +1 -1
  57. package/cjs/crypto/base64.js +9 -22
  58. package/cjs/crypto/base64.js.map +1 -1
  59. package/cjs/crypto/browser.js +0 -4
  60. package/cjs/crypto/browser.js.map +1 -1
  61. package/cjs/crypto/index.js +0 -9
  62. package/cjs/crypto/index.js.map +1 -1
  63. package/cjs/crypto/node.js +0 -13
  64. package/cjs/crypto/node.js.map +1 -1
  65. package/cjs/crypto/oidcHash.js +1 -4
  66. package/cjs/crypto/oidcHash.js.map +1 -1
  67. package/cjs/crypto/verifyToken.js +6 -7
  68. package/cjs/crypto/verifyToken.js.map +1 -1
  69. package/cjs/crypto/webcrypto.js +0 -1
  70. package/cjs/crypto/webcrypto.js.map +1 -1
  71. package/cjs/errors/AuthApiError.js +1 -7
  72. package/cjs/errors/AuthApiError.js.map +1 -1
  73. package/cjs/errors/AuthPollStopError.js +1 -5
  74. package/cjs/errors/AuthPollStopError.js.map +1 -1
  75. package/cjs/errors/AuthSdkError.js +1 -6
  76. package/cjs/errors/AuthSdkError.js.map +1 -1
  77. package/cjs/errors/CustomError.js +1 -4
  78. package/cjs/errors/CustomError.js.map +1 -1
  79. package/cjs/errors/OAuthError.js +4 -7
  80. package/cjs/errors/OAuthError.js.map +1 -1
  81. package/cjs/errors/index.js +1 -9
  82. package/cjs/errors/index.js.map +1 -1
  83. package/cjs/exports/authn.js +0 -9
  84. package/cjs/exports/authn.js.map +1 -1
  85. package/cjs/exports/cdn/authn.js +0 -2
  86. package/cjs/exports/cdn/authn.js.map +1 -1
  87. package/cjs/exports/cdn/core.js +0 -2
  88. package/cjs/exports/cdn/core.js.map +1 -1
  89. package/cjs/exports/cdn/default.js +0 -2
  90. package/cjs/exports/cdn/default.js.map +1 -1
  91. package/cjs/exports/cdn/idx.js +0 -2
  92. package/cjs/exports/cdn/idx.js.map +1 -1
  93. package/cjs/exports/cdn/myaccount.js +0 -2
  94. package/cjs/exports/cdn/myaccount.js.map +1 -1
  95. package/cjs/exports/common.js +0 -22
  96. package/cjs/exports/common.js.map +1 -1
  97. package/cjs/exports/core.js +0 -9
  98. package/cjs/exports/core.js.map +1 -1
  99. package/cjs/exports/default.js +2 -12
  100. package/cjs/exports/default.js.map +1 -1
  101. package/cjs/exports/idx.js +3 -7
  102. package/cjs/exports/idx.js.map +1 -1
  103. package/cjs/exports/myaccount.js +0 -9
  104. package/cjs/exports/myaccount.js.map +1 -1
  105. package/cjs/features.js +1 -18
  106. package/cjs/features.js.map +1 -1
  107. package/cjs/fetch/fetchRequest.js +6 -20
  108. package/cjs/fetch/fetchRequest.js.map +1 -1
  109. package/cjs/http/OktaUserAgent.js +3 -11
  110. package/cjs/http/OktaUserAgent.js.map +1 -1
  111. package/cjs/http/headers.js +1 -1
  112. package/cjs/http/headers.js.map +1 -1
  113. package/cjs/http/index.js +0 -11
  114. package/cjs/http/index.js.map +1 -1
  115. package/cjs/http/mixin.js +2 -10
  116. package/cjs/http/mixin.js.map +1 -1
  117. package/cjs/http/options.js +1 -5
  118. package/cjs/http/options.js.map +1 -1
  119. package/cjs/http/request.js +75 -57
  120. package/cjs/http/request.js.map +1 -1
  121. package/cjs/idx/IdxTransactionManager.js +2 -22
  122. package/cjs/idx/IdxTransactionManager.js.map +1 -1
  123. package/cjs/idx/authenticate.js +3 -5
  124. package/cjs/idx/authenticate.js.map +1 -1
  125. package/cjs/idx/authenticator/Authenticator.js +2 -4
  126. package/cjs/idx/authenticator/Authenticator.js.map +1 -1
  127. package/cjs/idx/authenticator/OktaPassword.js +2 -10
  128. package/cjs/idx/authenticator/OktaPassword.js.map +1 -1
  129. package/cjs/idx/authenticator/OktaVerifyTotp.js +0 -6
  130. package/cjs/idx/authenticator/OktaVerifyTotp.js.map +1 -1
  131. package/cjs/idx/authenticator/SecurityQuestionEnrollment.js +0 -10
  132. package/cjs/idx/authenticator/SecurityQuestionEnrollment.js.map +1 -1
  133. package/cjs/idx/authenticator/SecurityQuestionVerification.js +1 -10
  134. package/cjs/idx/authenticator/SecurityQuestionVerification.js.map +1 -1
  135. package/cjs/idx/authenticator/VerificationCodeAuthenticator.js +2 -10
  136. package/cjs/idx/authenticator/VerificationCodeAuthenticator.js.map +1 -1
  137. package/cjs/idx/authenticator/WebauthnEnrollment.js +0 -8
  138. package/cjs/idx/authenticator/WebauthnEnrollment.js.map +1 -1
  139. package/cjs/idx/authenticator/WebauthnVerification.js +0 -8
  140. package/cjs/idx/authenticator/WebauthnVerification.js.map +1 -1
  141. package/cjs/idx/authenticator/getAuthenticator.js +0 -15
  142. package/cjs/idx/authenticator/getAuthenticator.js.map +1 -1
  143. package/cjs/idx/authenticator/index.js +0 -15
  144. package/cjs/idx/authenticator/index.js.map +1 -1
  145. package/cjs/idx/authenticator/util.js +8 -18
  146. package/cjs/idx/authenticator/util.js.map +1 -1
  147. package/cjs/idx/cancel.js +3 -4
  148. package/cjs/idx/cancel.js.map +1 -1
  149. package/cjs/idx/emailVerify.js +5 -13
  150. package/cjs/idx/emailVerify.js.map +1 -1
  151. package/cjs/idx/factory/OktaAuthIdx.js +0 -3
  152. package/cjs/idx/factory/OktaAuthIdx.js.map +1 -1
  153. package/cjs/idx/factory/api.js +1 -17
  154. package/cjs/idx/factory/api.js.map +1 -1
  155. package/cjs/idx/factory/index.js +0 -3
  156. package/cjs/idx/factory/index.js.map +1 -1
  157. package/cjs/idx/flow/AccountUnlockFlow.js +1 -2
  158. package/cjs/idx/flow/AccountUnlockFlow.js.map +1 -1
  159. package/cjs/idx/flow/AuthenticationFlow.js +1 -2
  160. package/cjs/idx/flow/AuthenticationFlow.js.map +1 -1
  161. package/cjs/idx/flow/FlowSpecification.js +2 -13
  162. package/cjs/idx/flow/FlowSpecification.js.map +1 -1
  163. package/cjs/idx/flow/PasswordRecoveryFlow.js +1 -2
  164. package/cjs/idx/flow/PasswordRecoveryFlow.js.map +1 -1
  165. package/cjs/idx/flow/RegistrationFlow.js +1 -2
  166. package/cjs/idx/flow/RegistrationFlow.js.map +1 -1
  167. package/cjs/idx/flow/index.js +0 -11
  168. package/cjs/idx/flow/index.js.map +1 -1
  169. package/cjs/idx/handleInteractionCodeRedirect.js +7 -12
  170. package/cjs/idx/handleInteractionCodeRedirect.js.map +1 -1
  171. package/cjs/idx/idxState/index.js +1 -11
  172. package/cjs/idx/idxState/index.js.map +1 -1
  173. package/cjs/idx/idxState/v1/actionParser.js +1 -12
  174. package/cjs/idx/idxState/v1/actionParser.js.map +1 -1
  175. package/cjs/idx/idxState/v1/generateIdxAction.js +10 -15
  176. package/cjs/idx/idxState/v1/generateIdxAction.js.map +1 -1
  177. package/cjs/idx/idxState/v1/idxResponseParser.js +7 -23
  178. package/cjs/idx/idxState/v1/idxResponseParser.js.map +1 -1
  179. package/cjs/idx/idxState/v1/makeIdxState.js +2 -10
  180. package/cjs/idx/idxState/v1/makeIdxState.js.map +1 -1
  181. package/cjs/idx/idxState/v1/parsers.js +0 -2
  182. package/cjs/idx/idxState/v1/parsers.js.map +1 -1
  183. package/cjs/idx/idxState/v1/remediationParser.js +2 -4
  184. package/cjs/idx/idxState/v1/remediationParser.js.map +1 -1
  185. package/cjs/idx/index.js +0 -26
  186. package/cjs/idx/index.js.map +1 -1
  187. package/cjs/idx/interact.js +18 -18
  188. package/cjs/idx/interact.js.map +1 -1
  189. package/cjs/idx/introspect.js +5 -14
  190. package/cjs/idx/introspect.js.map +1 -1
  191. package/cjs/idx/mixin.js +0 -9
  192. package/cjs/idx/mixin.js.map +1 -1
  193. package/cjs/idx/options.js +2 -3
  194. package/cjs/idx/options.js.map +1 -1
  195. package/cjs/idx/poll.js +1 -10
  196. package/cjs/idx/poll.js.map +1 -1
  197. package/cjs/idx/proceed.js +3 -9
  198. package/cjs/idx/proceed.js.map +1 -1
  199. package/cjs/idx/recoverPassword.js +3 -4
  200. package/cjs/idx/recoverPassword.js.map +1 -1
  201. package/cjs/idx/register.js +5 -11
  202. package/cjs/idx/register.js.map +1 -1
  203. package/cjs/idx/remediate.js +24 -45
  204. package/cjs/idx/remediate.js.map +1 -1
  205. package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +7 -16
  206. package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
  207. package/cjs/idx/remediators/AuthenticatorVerificationData.js +7 -15
  208. package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
  209. package/cjs/idx/remediators/Base/AuthenticatorData.js +7 -22
  210. package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
  211. package/cjs/idx/remediators/Base/Remediator.js +38 -67
  212. package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
  213. package/cjs/idx/remediators/Base/SelectAuthenticator.js +13 -30
  214. package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
  215. package/cjs/idx/remediators/Base/VerifyAuthenticator.js +5 -13
  216. package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
  217. package/cjs/idx/remediators/ChallengeAuthenticator.js +1 -5
  218. package/cjs/idx/remediators/ChallengeAuthenticator.js.map +1 -1
  219. package/cjs/idx/remediators/ChallengePoll.js +1 -6
  220. package/cjs/idx/remediators/ChallengePoll.js.map +1 -1
  221. package/cjs/idx/remediators/EnrollAuthenticator.js +1 -5
  222. package/cjs/idx/remediators/EnrollAuthenticator.js.map +1 -1
  223. package/cjs/idx/remediators/EnrollPoll.js +5 -12
  224. package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
  225. package/cjs/idx/remediators/EnrollProfile.js +8 -30
  226. package/cjs/idx/remediators/EnrollProfile.js.map +1 -1
  227. package/cjs/idx/remediators/EnrollmentChannelData.js +5 -13
  228. package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -1
  229. package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js +13 -19
  230. package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js.map +1 -1
  231. package/cjs/idx/remediators/GenericRemediator/index.js +0 -1
  232. package/cjs/idx/remediators/GenericRemediator/index.js.map +1 -1
  233. package/cjs/idx/remediators/GenericRemediator/util.js +19 -31
  234. package/cjs/idx/remediators/GenericRemediator/util.js.map +1 -1
  235. package/cjs/idx/remediators/Identify.js +3 -12
  236. package/cjs/idx/remediators/Identify.js.map +1 -1
  237. package/cjs/idx/remediators/ReEnrollAuthenticator.js +3 -10
  238. package/cjs/idx/remediators/ReEnrollAuthenticator.js.map +1 -1
  239. package/cjs/idx/remediators/RedirectIdp.js +1 -7
  240. package/cjs/idx/remediators/RedirectIdp.js.map +1 -1
  241. package/cjs/idx/remediators/ResetAuthenticator.js +1 -5
  242. package/cjs/idx/remediators/ResetAuthenticator.js.map +1 -1
  243. package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js +3 -11
  244. package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
  245. package/cjs/idx/remediators/SelectAuthenticatorEnroll.js +1 -5
  246. package/cjs/idx/remediators/SelectAuthenticatorEnroll.js.map +1 -1
  247. package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js +6 -15
  248. package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js.map +1 -1
  249. package/cjs/idx/remediators/SelectEnrollProfile.js +1 -6
  250. package/cjs/idx/remediators/SelectEnrollProfile.js.map +1 -1
  251. package/cjs/idx/remediators/SelectEnrollmentChannel.js +5 -16
  252. package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -1
  253. package/cjs/idx/remediators/Skip.js +1 -6
  254. package/cjs/idx/remediators/Skip.js.map +1 -1
  255. package/cjs/idx/remediators/index.js +0 -39
  256. package/cjs/idx/remediators/index.js.map +1 -1
  257. package/cjs/idx/remediators/util.js +1 -7
  258. package/cjs/idx/remediators/util.js.map +1 -1
  259. package/cjs/idx/run.js +39 -54
  260. package/cjs/idx/run.js.map +1 -1
  261. package/cjs/idx/startTransaction.js +1 -2
  262. package/cjs/idx/startTransaction.js.map +1 -1
  263. package/cjs/idx/storage.js +3 -22
  264. package/cjs/idx/storage.js.map +1 -1
  265. package/cjs/idx/transactionMeta.js +24 -42
  266. package/cjs/idx/transactionMeta.js.map +1 -1
  267. package/cjs/idx/types/api.js +1 -9
  268. package/cjs/idx/types/api.js.map +1 -1
  269. package/cjs/idx/types/idx-js.js +3 -3
  270. package/cjs/idx/types/idx-js.js.map +1 -1
  271. package/cjs/idx/types/index.js +0 -7
  272. package/cjs/idx/types/index.js.map +1 -1
  273. package/cjs/idx/types/meta.js.map +1 -1
  274. package/cjs/idx/types/options.js.map +1 -1
  275. package/cjs/idx/unlockAccount.js +7 -11
  276. package/cjs/idx/unlockAccount.js.map +1 -1
  277. package/cjs/idx/util.js +24 -76
  278. package/cjs/idx/util.js.map +1 -1
  279. package/cjs/idx/webauthn.js +13 -18
  280. package/cjs/idx/webauthn.js.map +1 -1
  281. package/cjs/myaccount/api.js +0 -5
  282. package/cjs/myaccount/api.js.map +1 -1
  283. package/cjs/myaccount/emailApi.js +6 -21
  284. package/cjs/myaccount/emailApi.js.map +1 -1
  285. package/cjs/myaccount/factory.js +0 -3
  286. package/cjs/myaccount/factory.js.map +1 -1
  287. package/cjs/myaccount/index.js +0 -7
  288. package/cjs/myaccount/index.js.map +1 -1
  289. package/cjs/myaccount/mixin.js +0 -5
  290. package/cjs/myaccount/mixin.js.map +1 -1
  291. package/cjs/myaccount/phoneApi.js +5 -18
  292. package/cjs/myaccount/phoneApi.js.map +1 -1
  293. package/cjs/myaccount/profileApi.js +2 -9
  294. package/cjs/myaccount/profileApi.js.map +1 -1
  295. package/cjs/myaccount/request.js +12 -78
  296. package/cjs/myaccount/request.js.map +1 -1
  297. package/cjs/myaccount/transactions/Base.js +5 -7
  298. package/cjs/myaccount/transactions/Base.js.map +1 -1
  299. package/cjs/myaccount/transactions/EmailChallengeTransaction.js +5 -10
  300. package/cjs/myaccount/transactions/EmailChallengeTransaction.js.map +1 -1
  301. package/cjs/myaccount/transactions/EmailStatusTransaction.js +2 -7
  302. package/cjs/myaccount/transactions/EmailStatusTransaction.js.map +1 -1
  303. package/cjs/myaccount/transactions/EmailTransaction.js +5 -13
  304. package/cjs/myaccount/transactions/EmailTransaction.js.map +1 -1
  305. package/cjs/myaccount/transactions/PhoneTransaction.js +5 -12
  306. package/cjs/myaccount/transactions/PhoneTransaction.js.map +1 -1
  307. package/cjs/myaccount/transactions/ProfileSchemaTransaction.js +0 -5
  308. package/cjs/myaccount/transactions/ProfileSchemaTransaction.js.map +1 -1
  309. package/cjs/myaccount/transactions/ProfileTransaction.js +0 -5
  310. package/cjs/myaccount/transactions/ProfileTransaction.js.map +1 -1
  311. package/cjs/myaccount/transactions/index.js +0 -8
  312. package/cjs/myaccount/transactions/index.js.map +1 -1
  313. package/cjs/myaccount/types.js +0 -5
  314. package/cjs/myaccount/types.js.map +1 -1
  315. package/cjs/oidc/TokenManager.js +39 -100
  316. package/cjs/oidc/TokenManager.js.map +1 -1
  317. package/cjs/oidc/TransactionManager.js +19 -26
  318. package/cjs/oidc/TransactionManager.js.map +1 -1
  319. package/cjs/oidc/decodeToken.js +1 -5
  320. package/cjs/oidc/decodeToken.js.map +1 -1
  321. package/cjs/oidc/endpoints/authorize.js +9 -13
  322. package/cjs/oidc/endpoints/authorize.js.map +1 -1
  323. package/cjs/oidc/endpoints/index.js +0 -5
  324. package/cjs/oidc/endpoints/index.js.map +1 -1
  325. package/cjs/oidc/endpoints/token.js +5 -17
  326. package/cjs/oidc/endpoints/token.js.map +1 -1
  327. package/cjs/oidc/endpoints/well-known.js +7 -14
  328. package/cjs/oidc/endpoints/well-known.js.map +1 -1
  329. package/cjs/oidc/exchangeCodeForTokens.js +7 -12
  330. package/cjs/oidc/exchangeCodeForTokens.js.map +1 -1
  331. package/cjs/oidc/factory/OktaAuthOAuth.js +0 -6
  332. package/cjs/oidc/factory/OktaAuthOAuth.js.map +1 -1
  333. package/cjs/oidc/factory/api.js +6 -20
  334. package/cjs/oidc/factory/api.js.map +1 -1
  335. package/cjs/oidc/factory/index.js +0 -3
  336. package/cjs/oidc/factory/index.js.map +1 -1
  337. package/cjs/oidc/getToken.js +18 -30
  338. package/cjs/oidc/getToken.js.map +1 -1
  339. package/cjs/oidc/getUserInfo.js +1 -15
  340. package/cjs/oidc/getUserInfo.js.map +1 -1
  341. package/cjs/oidc/getWithPopup.js +4 -8
  342. package/cjs/oidc/getWithPopup.js.map +1 -1
  343. package/cjs/oidc/getWithRedirect.js +1 -8
  344. package/cjs/oidc/getWithRedirect.js.map +1 -1
  345. package/cjs/oidc/getWithoutPrompt.js +1 -5
  346. package/cjs/oidc/getWithoutPrompt.js.map +1 -1
  347. package/cjs/oidc/handleOAuthResponse.js +23 -40
  348. package/cjs/oidc/handleOAuthResponse.js.map +1 -1
  349. package/cjs/oidc/index.js +0 -32
  350. package/cjs/oidc/index.js.map +1 -1
  351. package/cjs/oidc/mixin/browser.js +6 -18
  352. package/cjs/oidc/mixin/browser.js.map +1 -1
  353. package/cjs/oidc/mixin/index.js +37 -89
  354. package/cjs/oidc/mixin/index.js.map +1 -1
  355. package/cjs/oidc/mixin/node.js +2 -9
  356. package/cjs/oidc/mixin/node.js.map +1 -1
  357. package/cjs/oidc/options/OAuthOptionsConstructor.js +17 -24
  358. package/cjs/oidc/options/OAuthOptionsConstructor.js.map +1 -1
  359. package/cjs/oidc/options/browser.js.map +1 -1
  360. package/cjs/oidc/options/index.js +0 -1
  361. package/cjs/oidc/options/index.js.map +1 -1
  362. package/cjs/oidc/options/node.js.map +1 -1
  363. package/cjs/oidc/parseFromUrl.js +1 -32
  364. package/cjs/oidc/parseFromUrl.js.map +1 -1
  365. package/cjs/oidc/renewToken.js +5 -16
  366. package/cjs/oidc/renewToken.js.map +1 -1
  367. package/cjs/oidc/renewTokens.js +3 -15
  368. package/cjs/oidc/renewTokens.js.map +1 -1
  369. package/cjs/oidc/renewTokensWithRefresh.js +3 -13
  370. package/cjs/oidc/renewTokensWithRefresh.js.map +1 -1
  371. package/cjs/oidc/revokeToken.js +3 -14
  372. package/cjs/oidc/revokeToken.js.map +1 -1
  373. package/cjs/oidc/storage.js +0 -8
  374. package/cjs/oidc/storage.js.map +1 -1
  375. package/cjs/oidc/types/Token.js +1 -5
  376. package/cjs/oidc/types/Token.js.map +1 -1
  377. package/cjs/oidc/types/TokenManager.js +1 -1
  378. package/cjs/oidc/types/TokenManager.js.map +1 -1
  379. package/cjs/oidc/types/Transaction.js +1 -12
  380. package/cjs/oidc/types/Transaction.js.map +1 -1
  381. package/cjs/oidc/types/UserClaims.js.map +1 -1
  382. package/cjs/oidc/types/api.js.map +1 -1
  383. package/cjs/oidc/types/index.js +0 -21
  384. package/cjs/oidc/types/index.js.map +1 -1
  385. package/cjs/oidc/types/meta.js.map +1 -1
  386. package/cjs/oidc/types/options.js.map +1 -1
  387. package/cjs/oidc/types/proto.js.map +1 -1
  388. package/cjs/oidc/util/browser.js +4 -13
  389. package/cjs/oidc/util/browser.js.map +1 -1
  390. package/cjs/oidc/util/defaultTokenParams.js +5 -5
  391. package/cjs/oidc/util/defaultTokenParams.js.map +1 -1
  392. package/cjs/oidc/util/errors.js +3 -8
  393. package/cjs/oidc/util/errors.js.map +1 -1
  394. package/cjs/oidc/util/index.js +0 -24
  395. package/cjs/oidc/util/index.js.map +1 -1
  396. package/cjs/oidc/util/loginRedirect.js +11 -25
  397. package/cjs/oidc/util/loginRedirect.js.map +1 -1
  398. package/cjs/oidc/util/oauth.js +3 -12
  399. package/cjs/oidc/util/oauth.js.map +1 -1
  400. package/cjs/oidc/util/oauthMeta.js +5 -6
  401. package/cjs/oidc/util/oauthMeta.js.map +1 -1
  402. package/cjs/oidc/util/pkce.js +1 -12
  403. package/cjs/oidc/util/pkce.js.map +1 -1
  404. package/cjs/oidc/util/prepareTokenParams.js +13 -26
  405. package/cjs/oidc/util/prepareTokenParams.js.map +1 -1
  406. package/cjs/oidc/util/refreshToken.js +0 -7
  407. package/cjs/oidc/util/refreshToken.js.map +1 -1
  408. package/cjs/oidc/util/sharedStorage.js +0 -8
  409. package/cjs/oidc/util/sharedStorage.js.map +1 -1
  410. package/cjs/oidc/util/urlParams.js +9 -12
  411. package/cjs/oidc/util/urlParams.js.map +1 -1
  412. package/cjs/oidc/util/validateClaims.js +9 -17
  413. package/cjs/oidc/util/validateClaims.js.map +1 -1
  414. package/cjs/oidc/util/validateToken.js +1 -6
  415. package/cjs/oidc/util/validateToken.js.map +1 -1
  416. package/cjs/oidc/verifyToken.js +13 -23
  417. package/cjs/oidc/verifyToken.js.map +1 -1
  418. package/cjs/server/serverStorage.js +9 -27
  419. package/cjs/server/serverStorage.js.map +1 -1
  420. package/cjs/services/AutoRenewService.js +1 -17
  421. package/cjs/services/AutoRenewService.js.map +1 -1
  422. package/cjs/services/LeaderElectionService.js +1 -23
  423. package/cjs/services/LeaderElectionService.js.map +1 -1
  424. package/cjs/services/SyncStorageService.js +3 -37
  425. package/cjs/services/SyncStorageService.js.map +1 -1
  426. package/cjs/services/index.js +0 -5
  427. package/cjs/services/index.js.map +1 -1
  428. package/cjs/session/api.js +1 -12
  429. package/cjs/session/api.js.map +1 -1
  430. package/cjs/session/factory.js +0 -2
  431. package/cjs/session/factory.js.map +1 -1
  432. package/cjs/session/index.js +0 -7
  433. package/cjs/session/index.js.map +1 -1
  434. package/cjs/session/mixin.js +2 -6
  435. package/cjs/session/mixin.js.map +1 -1
  436. package/cjs/storage/BaseStorageManager.js +13 -25
  437. package/cjs/storage/BaseStorageManager.js.map +1 -1
  438. package/cjs/storage/SavedObject.js +7 -19
  439. package/cjs/storage/SavedObject.js.map +1 -1
  440. package/cjs/storage/index.js +0 -9
  441. package/cjs/storage/index.js.map +1 -1
  442. package/cjs/storage/mixin.js +2 -4
  443. package/cjs/storage/mixin.js.map +1 -1
  444. package/cjs/storage/options/StorageOptionsConstructor.js +3 -6
  445. package/cjs/storage/options/StorageOptionsConstructor.js.map +1 -1
  446. package/cjs/storage/options/browser.js +7 -15
  447. package/cjs/storage/options/browser.js.map +1 -1
  448. package/cjs/storage/options/node.js +3 -6
  449. package/cjs/storage/options/node.js.map +1 -1
  450. package/cjs/util/PromiseQueue.js +7 -15
  451. package/cjs/util/PromiseQueue.js.map +1 -1
  452. package/cjs/util/console.js +3 -7
  453. package/cjs/util/console.js.map +1 -1
  454. package/cjs/util/index.js +0 -11
  455. package/cjs/util/index.js.map +1 -1
  456. package/cjs/util/misc.js +3 -8
  457. package/cjs/util/misc.js.map +1 -1
  458. package/cjs/util/object.js +9 -23
  459. package/cjs/util/object.js.map +1 -1
  460. package/cjs/util/types.js +1 -5
  461. package/cjs/util/types.js.map +1 -1
  462. package/cjs/util/url.js +5 -14
  463. package/cjs/util/url.js.map +1 -1
  464. package/dist/okta-auth-js.authn.min.analyzer.html +3 -3
  465. package/dist/okta-auth-js.authn.min.js +1 -1
  466. package/dist/okta-auth-js.authn.min.js.LICENSE.txt +2 -0
  467. package/dist/okta-auth-js.authn.min.js.map +1 -1
  468. package/dist/okta-auth-js.core.min.analyzer.html +3 -3
  469. package/dist/okta-auth-js.core.min.js +1 -1
  470. package/dist/okta-auth-js.core.min.js.LICENSE.txt +2 -0
  471. package/dist/okta-auth-js.core.min.js.map +1 -1
  472. package/dist/okta-auth-js.idx.min.analyzer.html +3 -3
  473. package/dist/okta-auth-js.idx.min.js +1 -1
  474. package/dist/okta-auth-js.idx.min.js.LICENSE.txt +2 -0
  475. package/dist/okta-auth-js.idx.min.js.map +1 -1
  476. package/dist/okta-auth-js.min.analyzer.html +3 -3
  477. package/dist/okta-auth-js.min.js +1 -1
  478. package/dist/okta-auth-js.min.js.LICENSE.txt +2 -0
  479. package/dist/okta-auth-js.min.js.map +1 -1
  480. package/dist/okta-auth-js.myaccount.min.analyzer.html +3 -3
  481. package/dist/okta-auth-js.myaccount.min.js +1 -1
  482. package/dist/okta-auth-js.myaccount.min.js.LICENSE.txt +2 -0
  483. package/dist/okta-auth-js.myaccount.min.js.map +1 -1
  484. package/dist/okta-auth-js.polyfill.js +1 -1
  485. package/dist/okta-auth-js.polyfill.js.map +1 -1
  486. package/esm/browser/http/OktaUserAgent.js +2 -2
  487. package/esm/browser/http/request.js +56 -23
  488. package/esm/browser/http/request.js.map +1 -1
  489. package/esm/browser/idx/interact.js +2 -2
  490. package/esm/browser/idx/interact.js.map +1 -1
  491. package/esm/browser/idx/run.js +3 -2
  492. package/esm/browser/idx/run.js.map +1 -1
  493. package/esm/browser/idx/transactionMeta.js +3 -2
  494. package/esm/browser/idx/transactionMeta.js.map +1 -1
  495. package/esm/browser/myaccount/request.js +2 -43
  496. package/esm/browser/myaccount/request.js.map +1 -1
  497. package/esm/browser/oidc/endpoints/authorize.js +1 -0
  498. package/esm/browser/oidc/endpoints/authorize.js.map +1 -1
  499. package/esm/browser/oidc/exchangeCodeForTokens.js +2 -1
  500. package/esm/browser/oidc/exchangeCodeForTokens.js.map +1 -1
  501. package/esm/browser/oidc/handleOAuthResponse.js +17 -16
  502. package/esm/browser/oidc/handleOAuthResponse.js.map +1 -1
  503. package/esm/browser/oidc/options/OAuthOptionsConstructor.js +2 -0
  504. package/esm/browser/oidc/options/OAuthOptionsConstructor.js.map +1 -1
  505. package/esm/browser/oidc/util/defaultTokenParams.js +3 -1
  506. package/esm/browser/oidc/util/defaultTokenParams.js.map +1 -1
  507. package/esm/browser/oidc/util/oauthMeta.js +1 -0
  508. package/esm/browser/oidc/util/oauthMeta.js.map +1 -1
  509. package/esm/browser/oidc/util/validateClaims.js +9 -4
  510. package/esm/browser/oidc/util/validateClaims.js.map +1 -1
  511. package/esm/browser/oidc/verifyToken.js +2 -2
  512. package/esm/browser/oidc/verifyToken.js.map +1 -1
  513. package/esm/browser/package.json +1 -1
  514. package/esm/node/http/OktaUserAgent.js +2 -2
  515. package/esm/node/http/request.js +56 -23
  516. package/esm/node/http/request.js.map +1 -1
  517. package/esm/node/idx/interact.js +2 -2
  518. package/esm/node/idx/interact.js.map +1 -1
  519. package/esm/node/idx/run.js +3 -2
  520. package/esm/node/idx/run.js.map +1 -1
  521. package/esm/node/idx/transactionMeta.js +3 -2
  522. package/esm/node/idx/transactionMeta.js.map +1 -1
  523. package/esm/node/myaccount/request.js +2 -43
  524. package/esm/node/myaccount/request.js.map +1 -1
  525. package/esm/node/oidc/endpoints/authorize.js +1 -0
  526. package/esm/node/oidc/endpoints/authorize.js.map +1 -1
  527. package/esm/node/oidc/exchangeCodeForTokens.js +2 -1
  528. package/esm/node/oidc/exchangeCodeForTokens.js.map +1 -1
  529. package/esm/node/oidc/handleOAuthResponse.js +17 -16
  530. package/esm/node/oidc/handleOAuthResponse.js.map +1 -1
  531. package/esm/node/oidc/options/OAuthOptionsConstructor.js +2 -0
  532. package/esm/node/oidc/options/OAuthOptionsConstructor.js.map +1 -1
  533. package/esm/node/oidc/util/defaultTokenParams.js +3 -1
  534. package/esm/node/oidc/util/defaultTokenParams.js.map +1 -1
  535. package/esm/node/oidc/util/oauthMeta.js +1 -0
  536. package/esm/node/oidc/util/oauthMeta.js.map +1 -1
  537. package/esm/node/oidc/util/validateClaims.js +9 -4
  538. package/esm/node/oidc/util/validateClaims.js.map +1 -1
  539. package/esm/node/oidc/verifyToken.js +2 -2
  540. package/esm/node/oidc/verifyToken.js.map +1 -1
  541. package/esm/node/package.json +1 -1
  542. package/package.json +12 -13
  543. package/polyfill/index.js +8 -5
  544. package/types/lib/core/options.d.ts +2 -0
  545. package/types/lib/idx/interact.d.ts +1 -0
  546. package/types/lib/idx/options.d.ts +2 -0
  547. package/types/lib/idx/types/meta.d.ts +1 -0
  548. package/types/lib/idx/types/options.d.ts +1 -0
  549. package/types/lib/oidc/options/OAuthOptionsConstructor.d.ts +2 -0
  550. package/types/lib/oidc/types/UserClaims.d.ts +1 -0
  551. package/types/lib/oidc/types/api.d.ts +1 -0
  552. package/types/lib/oidc/types/meta.d.ts +1 -1
  553. package/types/lib/oidc/types/options.d.ts +2 -1
  554. package/types/lib/oidc/types/proto.d.ts +1 -0
  555. package/umd/authn.js +1 -1
  556. package/umd/authn.js.LICENSE.txt +2 -0
  557. package/umd/authn.js.map +1 -1
  558. package/umd/core.js +1 -1
  559. package/umd/core.js.LICENSE.txt +2 -0
  560. package/umd/core.js.map +1 -1
  561. package/umd/default.js +1 -1
  562. package/umd/default.js.LICENSE.txt +2 -0
  563. package/umd/default.js.map +1 -1
  564. package/umd/idx.js +1 -1
  565. package/umd/idx.js.LICENSE.txt +2 -0
  566. package/umd/idx.js.map +1 -1
  567. package/umd/myaccount.js +1 -1
  568. package/umd/myaccount.js.LICENSE.txt +2 -0
  569. package/umd/myaccount.js.map +1 -1
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  exports.verifyToken = verifyToken;
4
-
5
4
  var _util = require("../util");
6
-
7
5
  var _base = require("./base64");
8
-
9
6
  var _webcrypto = require("./webcrypto");
10
-
11
7
  /*!
12
8
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
13
9
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -19,6 +15,7 @@ var _webcrypto = require("./webcrypto");
19
15
  *
20
16
  * See the License for the specific language governing permissions and limitations under the License.
21
17
  */
18
+
22
19
  function verifyToken(idToken, key) {
23
20
  key = (0, _util.clone)(key);
24
21
  var format = 'jwk';
@@ -29,13 +26,15 @@ function verifyToken(idToken, key) {
29
26
  }
30
27
  };
31
28
  var extractable = true;
32
- var usages = ['verify']; // https://connect.microsoft.com/IE/feedback/details/2242108/webcryptoapi-importing-jwk-with-use-field-fails
29
+ var usages = ['verify'];
30
+
31
+ // https://connect.microsoft.com/IE/feedback/details/2242108/webcryptoapi-importing-jwk-with-use-field-fails
33
32
  // This is a metadata tag that specifies the intent of how the key should be used.
34
33
  // It's not necessary to properly verify the jwt's signature.
34
+ delete key.use;
35
35
 
36
- delete key.use; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
37
37
  // @ts-ignore
38
-
39
38
  return _webcrypto.webcrypto.subtle.importKey(format, key, algo, extractable, usages).then(function (cryptoKey) {
40
39
  var jwt = idToken.split('.');
41
40
  var payload = (0, _base.stringToBuffer)(jwt[0] + '.' + jwt[1]);
@@ -1 +1 @@
1
- {"version":3,"file":"verifyToken.js","names":["verifyToken","idToken","key","clone","format","algo","name","hash","extractable","usages","use","webcrypto","subtle","importKey","then","cryptoKey","jwt","split","payload","stringToBuffer","b64Signature","base64UrlDecode","signature","verify"],"sources":["../../../lib/crypto/verifyToken.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util';\nimport { stringToBuffer, base64UrlDecode } from './base64';\nimport { webcrypto } from './webcrypto';\n\nexport function verifyToken(idToken, key) {\n key = clone(key);\n\n var format = 'jwk';\n var algo = {\n name: 'RSASSA-PKCS1-v1_5',\n hash: { name: 'SHA-256' }\n };\n var extractable = true;\n var usages = ['verify'];\n\n // https://connect.microsoft.com/IE/feedback/details/2242108/webcryptoapi-importing-jwk-with-use-field-fails\n // This is a metadata tag that specifies the intent of how the key should be used.\n // It's not necessary to properly verify the jwt's signature.\n delete key.use;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return webcrypto.subtle.importKey(\n format,\n key,\n algo,\n extractable,\n usages\n )\n .then(function(cryptoKey) {\n var jwt = idToken.split('.');\n var payload = stringToBuffer(jwt[0] + '.' + jwt[1]);\n var b64Signature = base64UrlDecode(jwt[2]);\n var signature = stringToBuffer(b64Signature);\n\n return webcrypto.subtle.verify(\n algo,\n cryptoKey,\n signature,\n payload\n );\n });\n}\n\n"],"mappings":";;;;AAYA;;AACA;;AACA;;AAdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMO,SAASA,WAAT,CAAqBC,OAArB,EAA8BC,GAA9B,EAAmC;EACxCA,GAAG,GAAG,IAAAC,WAAA,EAAMD,GAAN,CAAN;EAEA,IAAIE,MAAM,GAAG,KAAb;EACA,IAAIC,IAAI,GAAG;IACTC,IAAI,EAAE,mBADG;IAETC,IAAI,EAAE;MAAED,IAAI,EAAE;IAAR;EAFG,CAAX;EAIA,IAAIE,WAAW,GAAG,IAAlB;EACA,IAAIC,MAAM,GAAG,CAAC,QAAD,CAAb,CATwC,CAWxC;EACA;EACA;;EACA,OAAOP,GAAG,CAACQ,GAAX,CAdwC,CAgBxC;EACA;;EACA,OAAOC,oBAAA,CAAUC,MAAV,CAAiBC,SAAjB,CACLT,MADK,EAELF,GAFK,EAGLG,IAHK,EAILG,WAJK,EAKLC,MALK,EAONK,IAPM,CAOD,UAASC,SAAT,EAAoB;IACxB,IAAIC,GAAG,GAAGf,OAAO,CAACgB,KAAR,CAAc,GAAd,CAAV;IACA,IAAIC,OAAO,GAAG,IAAAC,oBAAA,EAAeH,GAAG,CAAC,CAAD,CAAH,GAAS,GAAT,GAAeA,GAAG,CAAC,CAAD,CAAjC,CAAd;IACA,IAAII,YAAY,GAAG,IAAAC,qBAAA,EAAgBL,GAAG,CAAC,CAAD,CAAnB,CAAnB;IACA,IAAIM,SAAS,GAAG,IAAAH,oBAAA,EAAeC,YAAf,CAAhB;IAEA,OAAOT,oBAAA,CAAUC,MAAV,CAAiBW,MAAjB,CACLlB,IADK,EAELU,SAFK,EAGLO,SAHK,EAILJ,OAJK,CAAP;EAMD,CAnBM,CAAP;AAoBD"}
1
+ {"version":3,"file":"verifyToken.js","names":["verifyToken","idToken","key","clone","format","algo","name","hash","extractable","usages","use","webcrypto","subtle","importKey","then","cryptoKey","jwt","split","payload","stringToBuffer","b64Signature","base64UrlDecode","signature","verify"],"sources":["../../../lib/crypto/verifyToken.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util';\nimport { stringToBuffer, base64UrlDecode } from './base64';\nimport { webcrypto } from './webcrypto';\n\nexport function verifyToken(idToken, key) {\n key = clone(key);\n\n var format = 'jwk';\n var algo = {\n name: 'RSASSA-PKCS1-v1_5',\n hash: { name: 'SHA-256' }\n };\n var extractable = true;\n var usages = ['verify'];\n\n // https://connect.microsoft.com/IE/feedback/details/2242108/webcryptoapi-importing-jwk-with-use-field-fails\n // This is a metadata tag that specifies the intent of how the key should be used.\n // It's not necessary to properly verify the jwt's signature.\n delete key.use;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return webcrypto.subtle.importKey(\n format,\n key,\n algo,\n extractable,\n usages\n )\n .then(function(cryptoKey) {\n var jwt = idToken.split('.');\n var payload = stringToBuffer(jwt[0] + '.' + jwt[1]);\n var b64Signature = base64UrlDecode(jwt[2]);\n var signature = stringToBuffer(b64Signature);\n\n return webcrypto.subtle.verify(\n algo,\n cryptoKey,\n signature,\n payload\n );\n });\n}\n\n"],"mappings":";;;AAYA;AACA;AACA;AAdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,SAASA,WAAW,CAACC,OAAO,EAAEC,GAAG,EAAE;EACxCA,GAAG,GAAG,IAAAC,WAAK,EAACD,GAAG,CAAC;EAEhB,IAAIE,MAAM,GAAG,KAAK;EAClB,IAAIC,IAAI,GAAG;IACTC,IAAI,EAAE,mBAAmB;IACzBC,IAAI,EAAE;MAAED,IAAI,EAAE;IAAU;EAC1B,CAAC;EACD,IAAIE,WAAW,GAAG,IAAI;EACtB,IAAIC,MAAM,GAAG,CAAC,QAAQ,CAAC;;EAEvB;EACA;EACA;EACA,OAAOP,GAAG,CAACQ,GAAG;;EAEd;EACA;EACA,OAAOC,oBAAS,CAACC,MAAM,CAACC,SAAS,CAC/BT,MAAM,EACNF,GAAG,EACHG,IAAI,EACJG,WAAW,EACXC,MAAM,CACP,CACAK,IAAI,CAAC,UAASC,SAAS,EAAE;IACxB,IAAIC,GAAG,GAAGf,OAAO,CAACgB,KAAK,CAAC,GAAG,CAAC;IAC5B,IAAIC,OAAO,GAAG,IAAAC,oBAAc,EAACH,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAGA,GAAG,CAAC,CAAC,CAAC,CAAC;IACnD,IAAII,YAAY,GAAG,IAAAC,qBAAe,EAACL,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAIM,SAAS,GAAG,IAAAH,oBAAc,EAACC,YAAY,CAAC;IAE5C,OAAOT,oBAAS,CAACC,MAAM,CAACW,MAAM,CAC5BlB,IAAI,EACJU,SAAS,EACTO,SAAS,EACTJ,OAAO,CACR;EACH,CAAC,CAAC;AACJ"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _node = require("./node");
4
-
5
4
  Object.keys(_node).forEach(function (key) {
6
5
  if (key === "default" || key === "__esModule") return;
7
6
  if (key in exports && exports[key] === _node[key]) return;
@@ -1 +1 @@
1
- {"version":3,"file":"webcrypto.js","names":[],"sources":["../../../lib/crypto/webcrypto.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n\n// ./node is swapped for ./browser in webpack config\nexport * from './node';"],"mappings":";;AAcA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"webcrypto.js","names":[],"sources":["../../../lib/crypto/webcrypto.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n\n// ./node is swapped for ./browser in webpack config\nexport * from './node';"],"mappings":";;AAcA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  exports.default = void 0;
6
-
7
5
  var _CustomError = _interopRequireDefault(require("./CustomError"));
8
-
9
6
  /*!
10
7
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
11
8
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -17,6 +14,7 @@ var _CustomError = _interopRequireDefault(require("./CustomError"));
17
14
  *
18
15
  * See the License for the specific language governing permissions and limitations under the License.
19
16
  */
17
+
20
18
  class AuthApiError extends _CustomError.default {
21
19
  constructor(err, xhr, meta) {
22
20
  const message = err.errorSummary;
@@ -27,18 +25,14 @@ class AuthApiError extends _CustomError.default {
27
25
  this.errorLink = err.errorLink;
28
26
  this.errorId = err.errorId;
29
27
  this.errorCauses = err.errorCauses;
30
-
31
28
  if (xhr) {
32
29
  this.xhr = xhr;
33
30
  }
34
-
35
31
  if (meta) {
36
32
  this.meta = meta;
37
33
  }
38
34
  }
39
-
40
35
  }
41
-
42
36
  exports.default = AuthApiError;
43
37
  module.exports = exports.default;
44
38
  //# sourceMappingURL=AuthApiError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthApiError.js","names":["AuthApiError","CustomError","constructor","err","xhr","meta","message","errorSummary","name","errorCode","errorLink","errorId","errorCauses"],"sources":["../../../lib/errors/AuthApiError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\nimport { HttpResponse } from '../http/types';\nimport { APIError, FieldError } from './types';\n\nexport default class AuthApiError extends CustomError implements APIError {\n errorSummary: string;\n errorCode?: string;\n errorLink?: string;\n errorId?: string;\n errorCauses?: Array<FieldError>;\n xhr?: HttpResponse;\n meta?: Record<string, string | number>;\n\n constructor(err: APIError, xhr?: HttpResponse, meta?: Record<string, string | number>) {\n const message = err.errorSummary;\n super(message);\n\n this.name = 'AuthApiError';\n this.errorSummary = err.errorSummary;\n this.errorCode = err.errorCode;\n this.errorLink = err.errorLink;\n this.errorId = err.errorId;\n this.errorCauses = err.errorCauses;\n\n if (xhr) {\n this.xhr = xhr;\n }\n\n if (meta) {\n this.meta = meta;\n }\n }\n}\n"],"mappings":";;;;;;AAYA;;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMe,MAAMA,YAAN,SAA2BC,oBAA3B,CAA2D;EASxEC,WAAW,CAACC,GAAD,EAAgBC,GAAhB,EAAoCC,IAApC,EAA4E;IACrF,MAAMC,OAAO,GAAGH,GAAG,CAACI,YAApB;IACA,MAAMD,OAAN;IAEA,KAAKE,IAAL,GAAY,cAAZ;IACA,KAAKD,YAAL,GAAoBJ,GAAG,CAACI,YAAxB;IACA,KAAKE,SAAL,GAAiBN,GAAG,CAACM,SAArB;IACA,KAAKC,SAAL,GAAiBP,GAAG,CAACO,SAArB;IACA,KAAKC,OAAL,GAAeR,GAAG,CAACQ,OAAnB;IACA,KAAKC,WAAL,GAAmBT,GAAG,CAACS,WAAvB;;IAEA,IAAIR,GAAJ,EAAS;MACP,KAAKA,GAAL,GAAWA,GAAX;IACD;;IAED,IAAIC,IAAJ,EAAU;MACR,KAAKA,IAAL,GAAYA,IAAZ;IACD;EACF;;AA3BuE"}
1
+ {"version":3,"file":"AuthApiError.js","names":["AuthApiError","CustomError","constructor","err","xhr","meta","message","errorSummary","name","errorCode","errorLink","errorId","errorCauses"],"sources":["../../../lib/errors/AuthApiError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\nimport { HttpResponse } from '../http/types';\nimport { APIError, FieldError } from './types';\n\nexport default class AuthApiError extends CustomError implements APIError {\n errorSummary: string;\n errorCode?: string;\n errorLink?: string;\n errorId?: string;\n errorCauses?: Array<FieldError>;\n xhr?: HttpResponse;\n meta?: Record<string, string | number>;\n\n constructor(err: APIError, xhr?: HttpResponse, meta?: Record<string, string | number>) {\n const message = err.errorSummary;\n super(message);\n\n this.name = 'AuthApiError';\n this.errorSummary = err.errorSummary;\n this.errorCode = err.errorCode;\n this.errorLink = err.errorLink;\n this.errorId = err.errorId;\n this.errorCauses = err.errorCauses;\n\n if (xhr) {\n this.xhr = xhr;\n }\n\n if (meta) {\n this.meta = meta;\n }\n }\n}\n"],"mappings":";;;;AAYA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMe,MAAMA,YAAY,SAASC,oBAAW,CAAqB;EASxEC,WAAW,CAACC,GAAa,EAAEC,GAAkB,EAAEC,IAAsC,EAAE;IACrF,MAAMC,OAAO,GAAGH,GAAG,CAACI,YAAY;IAChC,KAAK,CAACD,OAAO,CAAC;IAEd,IAAI,CAACE,IAAI,GAAG,cAAc;IAC1B,IAAI,CAACD,YAAY,GAAGJ,GAAG,CAACI,YAAY;IACpC,IAAI,CAACE,SAAS,GAAGN,GAAG,CAACM,SAAS;IAC9B,IAAI,CAACC,SAAS,GAAGP,GAAG,CAACO,SAAS;IAC9B,IAAI,CAACC,OAAO,GAAGR,GAAG,CAACQ,OAAO;IAC1B,IAAI,CAACC,WAAW,GAAGT,GAAG,CAACS,WAAW;IAElC,IAAIR,GAAG,EAAE;MACP,IAAI,CAACA,GAAG,GAAGA,GAAG;IAChB;IAEA,IAAIC,IAAI,EAAE;MACR,IAAI,CAACA,IAAI,GAAGA,IAAI;IAClB;EACF;AACF;AAAC;AAAA"}
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  exports.default = void 0;
6
-
7
5
  var _CustomError = _interopRequireDefault(require("./CustomError"));
8
-
9
6
  /*!
10
7
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
11
8
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -17,14 +14,13 @@ var _CustomError = _interopRequireDefault(require("./CustomError"));
17
14
  *
18
15
  * See the License for the specific language governing permissions and limitations under the License.
19
16
  */
17
+
20
18
  class AuthPollStopError extends _CustomError.default {
21
19
  constructor() {
22
20
  const message = 'The poll was stopped by the sdk';
23
21
  super(message);
24
22
  }
25
-
26
23
  }
27
-
28
24
  exports.default = AuthPollStopError;
29
25
  module.exports = exports.default;
30
26
  //# sourceMappingURL=AuthPollStopError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthPollStopError.js","names":["AuthPollStopError","CustomError","constructor","message"],"sources":["../../../lib/errors/AuthPollStopError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\n\nexport default class AuthPollStopError extends CustomError {\n constructor() {\n const message = 'The poll was stopped by the sdk';\n super(message);\n }\n}\n"],"mappings":";;;;;;AAYA;;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIe,MAAMA,iBAAN,SAAgCC,oBAAhC,CAA4C;EACzDC,WAAW,GAAG;IACZ,MAAMC,OAAO,GAAG,iCAAhB;IACA,MAAMA,OAAN;EACD;;AAJwD"}
1
+ {"version":3,"file":"AuthPollStopError.js","names":["AuthPollStopError","CustomError","constructor","message"],"sources":["../../../lib/errors/AuthPollStopError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\n\nexport default class AuthPollStopError extends CustomError {\n constructor() {\n const message = 'The poll was stopped by the sdk';\n super(message);\n }\n}\n"],"mappings":";;;;AAYA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIe,MAAMA,iBAAiB,SAASC,oBAAW,CAAC;EACzDC,WAAW,GAAG;IACZ,MAAMC,OAAO,GAAG,iCAAiC;IACjD,KAAK,CAACA,OAAO,CAAC;EAChB;AACF;AAAC;AAAA"}
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  exports.default = void 0;
6
-
7
5
  var _CustomError = _interopRequireDefault(require("./CustomError"));
8
-
9
6
  /*!
10
7
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
11
8
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -17,6 +14,7 @@ var _CustomError = _interopRequireDefault(require("./CustomError"));
17
14
  *
18
15
  * See the License for the specific language governing permissions and limitations under the License.
19
16
  */
17
+
20
18
  class AuthSdkError extends _CustomError.default {
21
19
  constructor(msg, xhr) {
22
20
  super(msg);
@@ -26,14 +24,11 @@ class AuthSdkError extends _CustomError.default {
26
24
  this.errorLink = 'INTERNAL';
27
25
  this.errorId = 'INTERNAL';
28
26
  this.errorCauses = [];
29
-
30
27
  if (xhr) {
31
28
  this.xhr = xhr;
32
29
  }
33
30
  }
34
-
35
31
  }
36
-
37
32
  exports.default = AuthSdkError;
38
33
  module.exports = exports.default;
39
34
  //# sourceMappingURL=AuthSdkError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthSdkError.js","names":["AuthSdkError","CustomError","constructor","msg","xhr","name","errorCode","errorSummary","errorLink","errorId","errorCauses"],"sources":["../../../lib/errors/AuthSdkError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\nimport { APIError, FieldError } from './types';\n\nexport default class AuthSdkError extends CustomError implements APIError {\n errorSummary: string;\n errorCode: string;\n errorLink: string;\n errorId: string;\n errorCauses: Array<FieldError>;\n xhr?: XMLHttpRequest;\n\n constructor(msg: string, xhr?: XMLHttpRequest) {\n super(msg);\n this.name = 'AuthSdkError';\n this.errorCode = 'INTERNAL';\n this.errorSummary = msg;\n this.errorLink = 'INTERNAL';\n this.errorId = 'INTERNAL';\n this.errorCauses = [];\n if (xhr) {\n this.xhr = xhr;\n }\n }\n}\n"],"mappings":";;;;;;AAYA;;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKe,MAAMA,YAAN,SAA2BC,oBAA3B,CAA2D;EAQxEC,WAAW,CAACC,GAAD,EAAcC,GAAd,EAAoC;IAC7C,MAAMD,GAAN;IACA,KAAKE,IAAL,GAAY,cAAZ;IACA,KAAKC,SAAL,GAAiB,UAAjB;IACA,KAAKC,YAAL,GAAoBJ,GAApB;IACA,KAAKK,SAAL,GAAiB,UAAjB;IACA,KAAKC,OAAL,GAAe,UAAf;IACA,KAAKC,WAAL,GAAmB,EAAnB;;IACA,IAAIN,GAAJ,EAAS;MACP,KAAKA,GAAL,GAAWA,GAAX;IACD;EACF;;AAnBuE"}
1
+ {"version":3,"file":"AuthSdkError.js","names":["AuthSdkError","CustomError","constructor","msg","xhr","name","errorCode","errorSummary","errorLink","errorId","errorCauses"],"sources":["../../../lib/errors/AuthSdkError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\nimport { APIError, FieldError } from './types';\n\nexport default class AuthSdkError extends CustomError implements APIError {\n errorSummary: string;\n errorCode: string;\n errorLink: string;\n errorId: string;\n errorCauses: Array<FieldError>;\n xhr?: XMLHttpRequest;\n\n constructor(msg: string, xhr?: XMLHttpRequest) {\n super(msg);\n this.name = 'AuthSdkError';\n this.errorCode = 'INTERNAL';\n this.errorSummary = msg;\n this.errorLink = 'INTERNAL';\n this.errorId = 'INTERNAL';\n this.errorCauses = [];\n if (xhr) {\n this.xhr = xhr;\n }\n }\n}\n"],"mappings":";;;;AAYA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKe,MAAMA,YAAY,SAASC,oBAAW,CAAqB;EAQxEC,WAAW,CAACC,GAAW,EAAEC,GAAoB,EAAE;IAC7C,KAAK,CAACD,GAAG,CAAC;IACV,IAAI,CAACE,IAAI,GAAG,cAAc;IAC1B,IAAI,CAACC,SAAS,GAAG,UAAU;IAC3B,IAAI,CAACC,YAAY,GAAGJ,GAAG;IACvB,IAAI,CAACK,SAAS,GAAG,UAAU;IAC3B,IAAI,CAACC,OAAO,GAAG,UAAU;IACzB,IAAI,CAACC,WAAW,GAAG,EAAE;IACrB,IAAIN,GAAG,EAAE;MACP,IAAI,CAACA,GAAG,GAAGA,GAAG;IAChB;EACF;AACF;AAAC;AAAA"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  /*!
6
5
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
7
6
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -13,16 +12,14 @@ exports.default = void 0;
13
12
  *
14
13
  * See the License for the specific language governing permissions and limitations under the License.
15
14
  */
15
+
16
16
  class CustomError extends Error {
17
17
  constructor(message) {
18
18
  // https://stackoverflow.com/questions/41102060/typescript-extending-error-class
19
19
  super(message); // 'Error' breaks prototype chain here
20
-
21
20
  Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain
22
21
  }
23
-
24
22
  }
25
-
26
23
  exports.default = CustomError;
27
24
  module.exports = exports.default;
28
25
  //# sourceMappingURL=CustomError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomError.js","names":["CustomError","Error","constructor","message","Object","setPrototypeOf","new","target","prototype"],"sources":["../../../lib/errors/CustomError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport default class CustomError extends Error {\n constructor(message: string) {\n // https://stackoverflow.com/questions/41102060/typescript-extending-error-class\n super(message); // 'Error' breaks prototype chain here\n Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain\n }\n}\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEe,MAAMA,WAAN,SAA0BC,KAA1B,CAAgC;EAC7CC,WAAW,CAACC,OAAD,EAAkB;IAC3B;IACA,MAAMA,OAAN,EAF2B,CAEX;;IAChBC,MAAM,CAACC,cAAP,CAAsB,IAAtB,EAA4BC,GAAG,CAACC,MAAJ,CAAWC,SAAvC,EAH2B,CAGwB;EACpD;;AAL4C"}
1
+ {"version":3,"file":"CustomError.js","names":["CustomError","Error","constructor","message","Object","setPrototypeOf","new","target","prototype"],"sources":["../../../lib/errors/CustomError.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport default class CustomError extends Error {\n constructor(message: string) {\n // https://stackoverflow.com/questions/41102060/typescript-extending-error-class\n super(message); // 'Error' breaks prototype chain here\n Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain\n }\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,MAAMA,WAAW,SAASC,KAAK,CAAC;EAC7CC,WAAW,CAACC,OAAe,EAAE;IAC3B;IACA,KAAK,CAACA,OAAO,CAAC,CAAC,CAAC;IAChBC,MAAM,CAACC,cAAc,CAAC,IAAI,EAAEC,GAAG,CAACC,MAAM,CAACC,SAAS,CAAC,CAAC,CAAC;EACrD;AACF;AAAC;AAAA"}
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  exports.default = void 0;
6
-
7
5
  var _CustomError = _interopRequireDefault(require("./CustomError"));
8
-
9
6
  /* eslint-disable camelcase */
10
-
11
7
  /*!
12
8
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
13
9
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -19,20 +15,21 @@ var _CustomError = _interopRequireDefault(require("./CustomError"));
19
15
  *
20
16
  * See the License for the specific language governing permissions and limitations under the License.
21
17
  */
18
+
22
19
  class OAuthError extends _CustomError.default {
23
20
  // for widget / idx-js backward compatibility
21
+
24
22
  constructor(errorCode, summary) {
25
23
  super(summary);
26
24
  this.name = 'OAuthError';
27
25
  this.errorCode = errorCode;
28
- this.errorSummary = summary; // for widget / idx-js backward compatibility
26
+ this.errorSummary = summary;
29
27
 
28
+ // for widget / idx-js backward compatibility
30
29
  this.error = errorCode;
31
30
  this.error_description = summary;
32
31
  }
33
-
34
32
  }
35
-
36
33
  exports.default = OAuthError;
37
34
  module.exports = exports.default;
38
35
  //# sourceMappingURL=OAuthError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthError.js","names":["OAuthError","CustomError","constructor","errorCode","summary","name","errorSummary","error","error_description"],"sources":["../../../lib/errors/OAuthError.ts"],"sourcesContent":["/* eslint-disable camelcase */\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\n\nexport default class OAuthError extends CustomError {\n errorCode: string;\n errorSummary: string;\n\n // for widget / idx-js backward compatibility\n error: string;\n error_description: string;\n\n constructor(errorCode: string, summary: string) {\n super(summary);\n\n this.name = 'OAuthError';\n this.errorCode = errorCode;\n this.errorSummary = summary;\n\n // for widget / idx-js backward compatibility\n this.error = errorCode;\n this.error_description = summary;\n }\n}\n\n"],"mappings":";;;;;;AAaA;;AAbA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIe,MAAMA,UAAN,SAAyBC,oBAAzB,CAAqC;EAIlD;EAIAC,WAAW,CAACC,SAAD,EAAoBC,OAApB,EAAqC;IAC9C,MAAMA,OAAN;IAEA,KAAKC,IAAL,GAAY,YAAZ;IACA,KAAKF,SAAL,GAAiBA,SAAjB;IACA,KAAKG,YAAL,GAAoBF,OAApB,CAL8C,CAO9C;;IACA,KAAKG,KAAL,GAAaJ,SAAb;IACA,KAAKK,iBAAL,GAAyBJ,OAAzB;EACD;;AAlBiD"}
1
+ {"version":3,"file":"OAuthError.js","names":["OAuthError","CustomError","constructor","errorCode","summary","name","errorSummary","error","error_description"],"sources":["../../../lib/errors/OAuthError.ts"],"sourcesContent":["/* eslint-disable camelcase */\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError';\n\nexport default class OAuthError extends CustomError {\n errorCode: string;\n errorSummary: string;\n\n // for widget / idx-js backward compatibility\n error: string;\n error_description: string;\n\n constructor(errorCode: string, summary: string) {\n super(summary);\n\n this.name = 'OAuthError';\n this.errorCode = errorCode;\n this.errorSummary = summary;\n\n // for widget / idx-js backward compatibility\n this.error = errorCode;\n this.error_description = summary;\n }\n}\n\n"],"mappings":";;;;AAaA;AAbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIe,MAAMA,UAAU,SAASC,oBAAW,CAAC;EAIlD;;EAIAC,WAAW,CAACC,SAAiB,EAAEC,OAAe,EAAE;IAC9C,KAAK,CAACA,OAAO,CAAC;IAEd,IAAI,CAACC,IAAI,GAAG,YAAY;IACxB,IAAI,CAACF,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACG,YAAY,GAAGF,OAAO;;IAE3B;IACA,IAAI,CAACG,KAAK,GAAGJ,SAAS;IACtB,IAAI,CAACK,iBAAiB,GAAGJ,OAAO;EAClC;AACF;AAAC;AAAA"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _exportNames = {
6
5
  isAuthApiError: true,
7
6
  isOAuthError: true,
@@ -36,17 +35,11 @@ Object.defineProperty(exports, "OAuthError", {
36
35
  });
37
36
  exports.isAuthApiError = isAuthApiError;
38
37
  exports.isOAuthError = isOAuthError;
39
-
40
38
  var _AuthApiError = _interopRequireDefault(require("./AuthApiError"));
41
-
42
39
  var _AuthPollStopError = _interopRequireDefault(require("./AuthPollStopError"));
43
-
44
40
  var _AuthSdkError = _interopRequireDefault(require("./AuthSdkError"));
45
-
46
41
  var _OAuthError = _interopRequireDefault(require("./OAuthError"));
47
-
48
42
  var _types = require("./types");
49
-
50
43
  Object.keys(_types).forEach(function (key) {
51
44
  if (key === "default" || key === "__esModule") return;
52
45
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -58,7 +51,6 @@ Object.keys(_types).forEach(function (key) {
58
51
  }
59
52
  });
60
53
  });
61
-
62
54
  /*!
63
55
  * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
64
56
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -70,10 +62,10 @@ Object.keys(_types).forEach(function (key) {
70
62
  *
71
63
  * See the License for the specific language governing permissions and limitations under the License.
72
64
  */
65
+
73
66
  function isAuthApiError(obj) {
74
67
  return obj instanceof _AuthApiError.default;
75
68
  }
76
-
77
69
  function isOAuthError(obj) {
78
70
  return obj instanceof _OAuthError.default;
79
71
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["isAuthApiError","obj","AuthApiError","isOAuthError","OAuthError"],"sources":["../../../lib/errors/index.ts"],"sourcesContent":["\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from './AuthApiError';\nimport AuthPollStopError from './AuthPollStopError';\nimport AuthSdkError from './AuthSdkError';\nimport OAuthError from './OAuthError';\n\nfunction isAuthApiError(obj: any): obj is AuthApiError {\n return (obj instanceof AuthApiError);\n}\n\nfunction isOAuthError(obj: any): obj is OAuthError {\n return (obj instanceof OAuthError);\n}\n\nexport {\n isAuthApiError,\n isOAuthError,\n AuthApiError,\n AuthPollStopError,\n AuthSdkError,\n OAuthError\n};\n\nexport * from './types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;AACA;;AACA;;AACA;;AAmBA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAlCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA,SAASA,cAAT,CAAwBC,GAAxB,EAAuD;EACrD,OAAQA,GAAG,YAAYC,qBAAvB;AACD;;AAED,SAASC,YAAT,CAAsBF,GAAtB,EAAmD;EACjD,OAAQA,GAAG,YAAYG,mBAAvB;AACD"}
1
+ {"version":3,"file":"index.js","names":["isAuthApiError","obj","AuthApiError","isOAuthError","OAuthError"],"sources":["../../../lib/errors/index.ts"],"sourcesContent":["\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from './AuthApiError';\nimport AuthPollStopError from './AuthPollStopError';\nimport AuthSdkError from './AuthSdkError';\nimport OAuthError from './OAuthError';\n\nfunction isAuthApiError(obj: any): obj is AuthApiError {\n return (obj instanceof AuthApiError);\n}\n\nfunction isOAuthError(obj: any): obj is OAuthError {\n return (obj instanceof OAuthError);\n}\n\nexport {\n isAuthApiError,\n isOAuthError,\n AuthApiError,\n AuthPollStopError,\n AuthSdkError,\n OAuthError\n};\n\nexport * from './types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;AACA;AACA;AACA;AAmBA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAlCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,SAASA,cAAc,CAACC,GAAQ,EAAuB;EACrD,OAAQA,GAAG,YAAYC,qBAAY;AACrC;AAEA,SAASC,YAAY,CAACF,GAAQ,EAAqB;EACjD,OAAQA,GAAG,YAAYG,mBAAU;AACnC"}
@@ -4,13 +4,9 @@ var _exportNames = {
4
4
  OktaAuth: true
5
5
  };
6
6
  exports.default = exports.OktaAuth = void 0;
7
-
8
7
  var _oidc = require("../oidc");
9
-
10
8
  var _core = require("../core");
11
-
12
9
  var _authn = require("../authn");
13
-
14
10
  Object.keys(_authn).forEach(function (key) {
15
11
  if (key === "default" || key === "__esModule") return;
16
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -22,9 +18,7 @@ Object.keys(_authn).forEach(function (key) {
22
18
  }
23
19
  });
24
20
  });
25
-
26
21
  var _common = require("./common");
27
-
28
22
  Object.keys(_common).forEach(function (key) {
29
23
  if (key === "default" || key === "__esModule") return;
30
24
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -41,14 +35,11 @@ const StorageManager = (0, _core.createCoreStorageManager)();
41
35
  const TransactionManager = (0, _oidc.createTransactionManager)();
42
36
  const Core = (0, _core.createOktaAuthCore)(StorageManager, OptionsConstructor, TransactionManager);
43
37
  const WithAuthn = (0, _authn.mixinAuthn)(Core);
44
-
45
38
  class OktaAuth extends WithAuthn {
46
39
  constructor(options) {
47
40
  super(options);
48
41
  }
49
-
50
42
  }
51
-
52
43
  exports.OktaAuth = OktaAuth;
53
44
  var _default = OktaAuth;
54
45
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"authn.js","names":["OptionsConstructor","createCoreOptionsConstructor","StorageManager","createCoreStorageManager","TransactionManager","createTransactionManager","Core","createOktaAuthCore","WithAuthn","mixinAuthn","OktaAuth","constructor","options"],"sources":["../../../lib/exports/authn.ts"],"sourcesContent":["import {\n OktaAuthOptionsConstructor,\n} from '../base';\nimport {\n StorageManagerConstructor,\n} from '../storage';\nimport {\n createTransactionManager,\n TransactionManagerConstructor\n} from '../oidc';\nimport {\n createCoreOptionsConstructor,\n createCoreStorageManager,\n createOktaAuthCore,\n CoreStorageManagerInterface,\n OktaAuthCoreOptions,\n} from '../core';\nimport { mixinAuthn } from '../authn';\n\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface OktaAuthOptions extends OktaAuthCoreOptions {}\n\nconst OptionsConstructor: OktaAuthOptionsConstructor<OktaAuthOptions> = createCoreOptionsConstructor();\nconst StorageManager: StorageManagerConstructor<CoreStorageManagerInterface> = createCoreStorageManager();\nconst TransactionManager: TransactionManagerConstructor = createTransactionManager();\nconst Core = createOktaAuthCore(StorageManager, OptionsConstructor, TransactionManager);\nconst WithAuthn = mixinAuthn(Core);\n\nclass OktaAuth extends WithAuthn {\n constructor(options: OktaAuthOptions) {\n super(options);\n }\n}\n\nexport default OktaAuth;\nexport { OktaAuth };\nexport * from './common';\nexport * from '../authn';\n"],"mappings":";;;;;;;AAMA;;AAIA;;AAOA;;AAqBA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AADA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAdA,MAAMA,kBAA+D,GAAG,IAAAC,kCAAA,GAAxE;AACA,MAAMC,cAAsE,GAAG,IAAAC,8BAAA,GAA/E;AACA,MAAMC,kBAAiD,GAAG,IAAAC,8BAAA,GAA1D;AACA,MAAMC,IAAI,GAAG,IAAAC,wBAAA,EAAmBL,cAAnB,EAAmCF,kBAAnC,EAAuDI,kBAAvD,CAAb;AACA,MAAMI,SAAS,GAAG,IAAAC,iBAAA,EAAWH,IAAX,CAAlB;;AAEA,MAAMI,QAAN,SAAuBF,SAAvB,CAAiC;EAC/BG,WAAW,CAACC,OAAD,EAA2B;IACpC,MAAMA,OAAN;EACD;;AAH8B;;;eAMlBF,Q"}
1
+ {"version":3,"file":"authn.js","names":["OptionsConstructor","createCoreOptionsConstructor","StorageManager","createCoreStorageManager","TransactionManager","createTransactionManager","Core","createOktaAuthCore","WithAuthn","mixinAuthn","OktaAuth","constructor","options"],"sources":["../../../lib/exports/authn.ts"],"sourcesContent":["import {\n OktaAuthOptionsConstructor,\n} from '../base';\nimport {\n StorageManagerConstructor,\n} from '../storage';\nimport {\n createTransactionManager,\n TransactionManagerConstructor\n} from '../oidc';\nimport {\n createCoreOptionsConstructor,\n createCoreStorageManager,\n createOktaAuthCore,\n CoreStorageManagerInterface,\n OktaAuthCoreOptions,\n} from '../core';\nimport { mixinAuthn } from '../authn';\n\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface OktaAuthOptions extends OktaAuthCoreOptions {}\n\nconst OptionsConstructor: OktaAuthOptionsConstructor<OktaAuthOptions> = createCoreOptionsConstructor();\nconst StorageManager: StorageManagerConstructor<CoreStorageManagerInterface> = createCoreStorageManager();\nconst TransactionManager: TransactionManagerConstructor = createTransactionManager();\nconst Core = createOktaAuthCore(StorageManager, OptionsConstructor, TransactionManager);\nconst WithAuthn = mixinAuthn(Core);\n\nclass OktaAuth extends WithAuthn {\n constructor(options: OktaAuthOptions) {\n super(options);\n }\n}\n\nexport default OktaAuth;\nexport { OktaAuth };\nexport * from './common';\nexport * from '../authn';\n"],"mappings":";;;;;;AAMA;AAIA;AAOA;AAqBA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AADA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAdA,MAAMA,kBAA+D,GAAG,IAAAC,kCAA4B,GAAE;AACtG,MAAMC,cAAsE,GAAG,IAAAC,8BAAwB,GAAE;AACzG,MAAMC,kBAAiD,GAAG,IAAAC,8BAAwB,GAAE;AACpF,MAAMC,IAAI,GAAG,IAAAC,wBAAkB,EAACL,cAAc,EAAEF,kBAAkB,EAAEI,kBAAkB,CAAC;AACvF,MAAMI,SAAS,GAAG,IAAAC,iBAAU,EAACH,IAAI,CAAC;AAElC,MAAMI,QAAQ,SAASF,SAAS,CAAC;EAC/BG,WAAW,CAACC,OAAwB,EAAE;IACpC,KAAK,CAACA,OAAO,CAAC;EAChB;AACF;AAAC;AAAA,eAEcF,QAAQ;AAAA"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  var _authn = require("../authn");
6
-
7
5
  // Export only a single object
8
6
  var _default = _authn.OktaAuth;
9
7
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"authn.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/authn.ts"],"sourcesContent":["import { OktaAuth } from '../authn';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;;AAAA;;AAEA;eACeA,e"}
1
+ {"version":3,"file":"authn.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/authn.ts"],"sourcesContent":["import { OktaAuth } from '../authn';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;AAAA;AAEA;AAAA,eACeA,eAAQ;AAAA;AAAA"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  var _core = require("../core");
6
-
7
5
  // Export only a single object
8
6
  var _default = _core.OktaAuth;
9
7
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/core.ts"],"sourcesContent":["import { OktaAuth } from '../core';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;;AAAA;;AAEA;eACeA,c"}
1
+ {"version":3,"file":"core.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/core.ts"],"sourcesContent":["import { OktaAuth } from '../core';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;AAAA;AAEA;AAAA,eACeA,cAAQ;AAAA;AAAA"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  var _default2 = require("../default");
6
-
7
5
  // Export only a single object
8
6
  var _default = _default2.OktaAuth;
9
7
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/default.ts"],"sourcesContent":["import { OktaAuth } from '../default';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;;AAAA;;AAEA;eACeA,kB"}
1
+ {"version":3,"file":"default.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/default.ts"],"sourcesContent":["import { OktaAuth } from '../default';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;AAAA;AAEA;AAAA,eACeA,kBAAQ;AAAA;AAAA"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  var _idx = require("../idx");
6
-
7
5
  // Export only a single object
8
6
  var _default = _idx.OktaAuth;
9
7
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"idx.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/idx.ts"],"sourcesContent":["import { OktaAuth } from '../idx';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;;AAAA;;AAEA;eACeA,a"}
1
+ {"version":3,"file":"idx.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/idx.ts"],"sourcesContent":["import { OktaAuth } from '../idx';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;AAAA;AAEA;AAAA,eACeA,aAAQ;AAAA;AAAA"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.default = void 0;
4
-
5
4
  var _myaccount = require("../myaccount");
6
-
7
5
  // Export only a single object
8
6
  var _default = _myaccount.OktaAuth;
9
7
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"myaccount.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/myaccount.ts"],"sourcesContent":["import { OktaAuth } from '../myaccount';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;;AAAA;;AAEA;eACeA,mB"}
1
+ {"version":3,"file":"myaccount.js","names":["OktaAuth"],"sources":["../../../../lib/exports/cdn/myaccount.ts"],"sourcesContent":["import { OktaAuth } from '../myaccount';\n\n// Export only a single object\nexport default OktaAuth;\n"],"mappings":";;;AAAA;AAEA;AAAA,eACeA,mBAAQ;AAAA;AAAA"}
@@ -4,13 +4,9 @@ var _exportNames = {
4
4
  crypto: true
5
5
  };
6
6
  exports.crypto = void 0;
7
-
8
7
  var crypto = _interopRequireWildcard(require("../crypto"));
9
-
10
8
  exports.crypto = crypto;
11
-
12
9
  var _base = require("../base");
13
-
14
10
  Object.keys(_base).forEach(function (key) {
15
11
  if (key === "default" || key === "__esModule") return;
16
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -22,9 +18,7 @@ Object.keys(_base).forEach(function (key) {
22
18
  }
23
19
  });
24
20
  });
25
-
26
21
  var _constants = require("../constants");
27
-
28
22
  Object.keys(_constants).forEach(function (key) {
29
23
  if (key === "default" || key === "__esModule") return;
30
24
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -36,9 +30,7 @@ Object.keys(_constants).forEach(function (key) {
36
30
  }
37
31
  });
38
32
  });
39
-
40
33
  var _core = require("../core");
41
-
42
34
  Object.keys(_core).forEach(function (key) {
43
35
  if (key === "default" || key === "__esModule") return;
44
36
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -50,9 +42,7 @@ Object.keys(_core).forEach(function (key) {
50
42
  }
51
43
  });
52
44
  });
53
-
54
45
  var _errors = require("../errors");
55
-
56
46
  Object.keys(_errors).forEach(function (key) {
57
47
  if (key === "default" || key === "__esModule") return;
58
48
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -64,9 +54,7 @@ Object.keys(_errors).forEach(function (key) {
64
54
  }
65
55
  });
66
56
  });
67
-
68
57
  var _http = require("../http");
69
-
70
58
  Object.keys(_http).forEach(function (key) {
71
59
  if (key === "default" || key === "__esModule") return;
72
60
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -78,9 +66,7 @@ Object.keys(_http).forEach(function (key) {
78
66
  }
79
67
  });
80
68
  });
81
-
82
69
  var _oidc = require("../oidc");
83
-
84
70
  Object.keys(_oidc).forEach(function (key) {
85
71
  if (key === "default" || key === "__esModule") return;
86
72
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -92,9 +78,7 @@ Object.keys(_oidc).forEach(function (key) {
92
78
  }
93
79
  });
94
80
  });
95
-
96
81
  var _session = require("../session");
97
-
98
82
  Object.keys(_session).forEach(function (key) {
99
83
  if (key === "default" || key === "__esModule") return;
100
84
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -106,9 +90,7 @@ Object.keys(_session).forEach(function (key) {
106
90
  }
107
91
  });
108
92
  });
109
-
110
93
  var _storage = require("../storage");
111
-
112
94
  Object.keys(_storage).forEach(function (key) {
113
95
  if (key === "default" || key === "__esModule") return;
114
96
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -120,9 +102,7 @@ Object.keys(_storage).forEach(function (key) {
120
102
  }
121
103
  });
122
104
  });
123
-
124
105
  var _util = require("../util");
125
-
126
106
  Object.keys(_util).forEach(function (key) {
127
107
  if (key === "default" || key === "__esModule") return;
128
108
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -134,8 +114,6 @@ Object.keys(_util).forEach(function (key) {
134
114
  }
135
115
  });
136
116
  });
137
-
138
117
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
139
-
140
118
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
141
119
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","names":[],"sources":["../../../lib/exports/common.ts"],"sourcesContent":["import * as crypto from '../crypto';\n\nexport { crypto };\nexport * from '../base';\nexport * from '../constants';\nexport * from '../core';\nexport * from '../errors';\nexport * from '../http';\nexport * from '../oidc';\nexport * from '../session';\nexport * from '../storage';\nexport * from '../util';\n"],"mappings":";;;;;;;AAAA;;;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"common.js","names":[],"sources":["../../../lib/exports/common.ts"],"sourcesContent":["import * as crypto from '../crypto';\n\nexport { crypto };\nexport * from '../base';\nexport * from '../constants';\nexport * from '../core';\nexport * from '../errors';\nexport * from '../http';\nexport * from '../oidc';\nexport * from '../session';\nexport * from '../storage';\nexport * from '../util';\n"],"mappings":";;;;;;AAAA;AAAoC;AAGpC;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAAwB;AAAA"}