@asgardeo/auth-spa 0.2.2 → 0.2.3

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 (40) hide show
  1. package/dist/asgardeo-spa.production.esm.js +6 -6
  2. package/dist/asgardeo-spa.production.esm.js.map +1 -1
  3. package/dist/asgardeo-spa.production.js +17 -17
  4. package/dist/asgardeo-spa.production.js.map +1 -1
  5. package/dist/asgardeo-spa.production.min.js +1 -1
  6. package/dist/asgardeo-spa.production.min.js.map +1 -1
  7. package/dist/polyfilled/asgardeo-spa.production.esm.js +15 -15
  8. package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
  9. package/dist/polyfilled/asgardeo-spa.production.js +12 -12
  10. package/dist/polyfilled/asgardeo-spa.production.js.map +1 -1
  11. package/dist/polyfilled/asgardeo-spa.production.min.js +1 -1
  12. package/dist/polyfilled/asgardeo-spa.production.min.js.map +1 -1
  13. package/dist/src/client.d.ts.map +1 -1
  14. package/dist/src/client.js +2 -1
  15. package/dist/src/client.js.map +1 -1
  16. package/dist/src/clients/main-thread-client.d.ts.map +1 -1
  17. package/dist/src/clients/main-thread-client.js +10 -2
  18. package/dist/src/clients/main-thread-client.js.map +1 -1
  19. package/dist/src/clients/web-worker-client.d.ts.map +1 -1
  20. package/dist/src/clients/web-worker-client.js +25 -9
  21. package/dist/src/clients/web-worker-client.js.map +1 -1
  22. package/dist/src/constants/session-management.d.ts +1 -0
  23. package/dist/src/constants/session-management.d.ts.map +1 -1
  24. package/dist/src/constants/session-management.js +1 -0
  25. package/dist/src/constants/session-management.js.map +1 -1
  26. package/dist/src/helpers/session-management-helper.d.ts.map +1 -1
  27. package/dist/src/helpers/session-management-helper.js +32 -18
  28. package/dist/src/helpers/session-management-helper.js.map +1 -1
  29. package/dist/src/utils/spa-utils.d.ts +37 -0
  30. package/dist/src/utils/spa-utils.d.ts.map +1 -1
  31. package/dist/src/utils/spa-utils.js +58 -1
  32. package/dist/src/utils/spa-utils.js.map +1 -1
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +2 -2
  35. package/src/client.ts +3 -1
  36. package/src/clients/main-thread-client.ts +15 -5
  37. package/src/clients/web-worker-client.ts +32 -12
  38. package/src/constants/session-management.ts +1 -0
  39. package/src/helpers/session-management-helper.ts +42 -18
  40. package/src/utils/spa-utils.ts +59 -3
@@ -1 +1 @@
1
- {"version":3,"file":"spa-utils.js","sourceRoot":"","sources":["../../../src/utils/spa-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE5G,MAAM,OAAO,QAAQ;IACjB,gEAAgE;IAChE,gBAAuB,CAAC;IAEjB,MAAM,CAAC,uBAAuB;QACjC,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC;QAE1B,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;IACzE,CAAC;IAEM,MAAM,CAAC,OAAO;;QACjB,OAAO,MAAA,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,mCAAI,EAAE,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,IAAY;QAC9B,cAAc,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,GAAW;QACnC,cAAc,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,aAAa;;QACvB,OAAO,MAAA,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,mCAAI,EAA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AAC;QAC3E,CAAC;KAAA;CACJ"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/axios/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/client-config.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/oidc-endpoints.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/custom-grant-template-tags.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/parameters.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/scopes.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/environments.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/client-config.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/oidc-provider-meta-data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/token.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/custom-grant.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/id-token.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/authorization-url.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/user.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/crypto.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts","../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/authentication-client.d.ts","../node_modules/@asgardeo/auth-js/dist/src/public-api.d.ts","../node_modules/@asgardeo/auth-js/dist/src/index.d.ts","../src/constants/messages-types.ts","../src/constants/storage.ts","../src/constants/hooks.ts","../src/constants/session-management.ts","../src/constants/parameters.ts","../src/constants/index.ts","../src/exception/exception.ts","../src/exception/index.ts","../src/index.ts","../src/helpers/spa-helper.ts","../src/http-client/helpers/decorators.ts","../src/http-client/helpers/index.ts","../src/http-client/models/axios-http-client.ts","../src/http-client/models/http-client.ts","../src/http-client/models/index.ts","../src/http-client/clients/axios-http-client.ts","../src/http-client/clients/index.ts","../src/http-client/index.ts","../src/models/client.ts","../src/models/message.ts","../src/models/http-client.ts","../src/models/web-worker.ts","../src/models/session-management-helper.ts","../src/models/client-config.ts","../src/models/sign-in.ts","../src/models/index.ts","../src/helpers/session-management-helper.ts","../src/helpers/index.ts","../src/stores/local-store.ts","../src/stores/memory-store.ts","../src/stores/session-store.ts","../src/stores/index.ts","../src/utils/message-utils.ts","../src/utils/spa-utils.ts","../src/utils/index.ts","../src/clients/main-thread-client.ts","../src/clients/web-worker-client.ts","../src/clients/index.ts","../src/client.ts","../src/public-api.ts","../src/index-polyfill.ts","../polyfilled/esm.d.ts","../polyfilled/umd.d.ts","../src/web-worker.d.ts","../src/worker/worker-core.ts","../src/worker/client.worker.ts","../src/worker/index.ts","../node_modules/@types/crypto-js/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/resolve/index.d.ts","../../node_modules/@types/eslint-visitor-keys/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"0d892f035dbee4534f0ba096407136877595ca592f67ec9bb8a5c912b9c967e8","6009474c65328718bc827d496d956b2fc7e31a3f643e0f260893b7d976619b80","8f1840a1bcc07dff7b2699ee094572773916dba87fc8d117991c4877f3015789","2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199","6d95d47e30b37d6343fbd45412107bf9f15a953b286bd38da70eb2f6be60cfb2","eb0e3a88b1c4129f1b8806e2088ecd5b5bb1d1a642cfaf097599e0962d7ef14f","1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4","1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188","b769da9db76c0a97e79e482fdb8c16cbfe9858e52b64d29251b9ae5e4c57328c","e00379f171286b46a85b97f8fc212da7317a64776557e91b0f60e3f00aecde13","5d7881988209b37a5e6787510c2827423082a5eff6ebe06c92db73f56b5f877b","9ff732b56ae6ed86f5285789b7db6590eeec4d1723d0aab0030cd0b198501185","a24a235aa6c4de52ec1f80ceddb83e12c068c8dbba57ea953ea9b7718bae96c9","825694ed40ad4a303a52a237b6b802db0bfa3863b7d8d567cb8a1d6320146f9e","f5208dad431ac789aa877218bd9cb927956dd70080be8a6d0ef1bb3338aa8297","6635b93bcfaa940eb5b2ce90bb90bebd6164ed48cf8f18195bdbdbbc6c45f5aa","f4930ac875f2a683b1bb2cfed759e3cc0a7e299729cbeadb844d9b594edf96e9","6118155581313325dbba17d5749d6afacea297d73330b3b3c00544277b8945d5","be1eb3d1d2134b38e8378537f6a1f3d8ce903099d5ca7a85a3fd8d22ecc2f297","9d34db4a49519acd58bc7ab38efe284d5c8832e20d9771dfa6d4c7a811fa097c","e8c3776e0a629f3ae805d16655d4d3f01d29638b64126361c35b2c95d4c1ca37","227377e02e082a35ac126a233c838e50c7cc4e19e49370fd4bab58bf0ca82724","4fa26edbe2cd2f0cd5becb3c28f2257fc43fbe3f0cbc1285af2f1f90d5caaab0","16477c5d5d66d2628a79168722da47a27b1f20331418852acccbdbe82294b70c","116a0c80e52b8437b3f4c693b167fafb648e46d27d6f6aff6b82700e405a6a10","c9b106e487f5552eb3854e49bf5956bd90c4c36fb0aeff0cc0b62b5b660eb1cf","bdddc9f1599d1b01c07b5a6e9da4629a58712972797ffc96be3fe5cd178dfa72","615c1cb1517950fce492c353ea69ee2a6824d1f4e68ddd50efe40228a99737a7","4b2d9035b3e6411d1b99b86991fa7f8d78453abbd5e256b4f6a74cd0e313debf","be327204faa5e238e666af2688a6ecfc48bac20ce379a32bee15d98b3d8d6ac3","7e6c0fb9e150f07ca6a9caa7b39aaa840d861a3cf307d8a9b72b5bb55c0ec027","fd1b6953785d5fbde4feda18020a8debdafdd0bd14c332a4178cd245a878e43f","1a5fd7fd06c35fceef3d43a0637fe370bfe1daa82f538b183cb065bb0aec3a78","98c679ad74f5dc65535f79a19f19fa3d1142bbe682792c0584ce1f11824c40b7","7c3ab924fd8494f286ad3966ebbcbcf7fe07d81bc3d928e1800b05d75a7fadac","c241721993235e5b85856909593605f12530c5e366f0456f5cd2158c19dcbad6","6da64e55101ad42112c2f2327c89f16abc5879c56042585882b32610c764778d","ed8d18f4db98a6038b2d818776a23e9d70c1c59b83368af2e5c525d7fea540fe","a21280e001d7c8996040872e63b114ca4d2a94476e0c741ee198248d0d2ddbd6","b7fb8f90b85ac9b8ada20a8b1a71200fd57e40a68470b27f7bb443cad5cb4df0","d373d738f77efc587af5b7cc4f0072af050dd4a7af7fd404928423052101139f","886f9c6cce85546bd9e7acdb8c3e3642418efe459dcf1f468c4c8ffa279427bd","d155c20be2e5f852a976525a804e2a58a5a83caad9638e7457010810990ab0aa","a3e17bcc39d20b51754832c09d10c45764de23bf7f44fbf1c9ff9a4093096a0c","b7c46f595bc3df944aa379ddf7ec537c9c758751115f2e10bdf8e9896c12b2fb","3ba1efa5b0b29dfb759a89ce1d9effbadeecbe625f210c2cf9118ed20746a8dd","8cd206283d14408df0998e4175d38dd629e41c7331efde8cae96a7419deb7825","19220cd1cbf685225e3f30f6d909920ed47e2ec5a188a3dd33e3231efc990f5b","e6ef854ad1e937ef95b0ddc9ad7a6c7cf60ca7d37dcd4d2db46e6a22b9921bb3","d93adf1ea2eef8c54cb41fdfb8541c6443725662a1adb5dad80c0dac4d8d61bf","391eadb973a86339e7f75e2e9087eaba0f7a8bf490895689f651f37b67e3442c","6fdb3f5a7f50a9a330fe71b975d92dad426632931bce0852988dbd727797a8b7","b3643471b0860e55440721bc05499b5c6373d5ad8aad96d429a78484024176a9","789a86243d9f9d1d2816f005c924c07e4054193bcd9a5dccb9b683722251586b","4ac58569ec95e39656dff0a8b5cd43d847bb537d6ebf85c5cfe5fadbfe65cae5","a403cebc4c34b09157a0abdbed93e79e5f4055d36072f858a6db85cb8dea5f12","2a3ee5ceba0a31af3ccb8065831a9681fa378f318fdcfbd01d005c6cdcaa6b36","367f58fdb8e20e8c89febf84857bf23bdd2236735f9242a1901270880352cf79","093ceafe704d2244ba3e297d7ce665d7f2e4a7112cf1334a9373b76acb9402a8","1b2de1b18b8858708c4f8fa85f4b163264bf3d8d9594b5e5075766ddeb1267b1","bdf9e2934dfefdae2b7f3dfc8302e340b0ac830c18c3ae8de476e5da1a80bf02","671315ee8d597ab350f046802451dc7176d8a1aa08580c6d6275aae87bb9f9bb","10145cb62342f9ec232ddba0afc2fcbe6eaca8b5000e17f2659a260197c0c887","d6ce89e3e6f99b71c87dd15606b62e5196ca3f23d78902743770c1ef960cdb06","0d4401a656f3d5480631a345ade69ef23a880ebd4c599f9230d0a3a8cca08253","99fc1afc2ee80d9ccca4185b67de2123563287ba59f7f717368cc70722383b3e","99fc1afc2ee80d9ccca4185b67de2123563287ba59f7f717368cc70722383b3e","b7250063a1605fc45ce68674b4a6941a8f44cc9493cb9b1f4119c6912042cfee","f3d6a1cacd24d5003fc436351ef263118c0b213481384960ae910400ed0d630c","60d6035a6aa03feac75bcae8b8fca97fbf52823aba81b5cc5c0e921f5527c043","12cd176460fc2e3593aa8056528063470c76d5af93919c6c77797f4298bcbc93","7eda637d5e9f03a2c6ddf6cd8880e7ac96fa17b048ad05213d18a7813d0c2861","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b",{"version":"c98a21476edf4bb50ee872b492e70f3a9c407778e276555ea0ee006983f350a8","affectsGlobalScope":true},"726b22a7926e82a6013c11f8de5dfd6ddfb4b830693fa43ac391d2d69a3ad814","61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878","4812adce4c4e9b4a29f1458737a7e8110cbed3864b94ae8ac975f6d6fbaf7f46","123ec69e4b3a686eb49afd94ebe3292a5c84a867ecbcb6bb84bdd720a12af803","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","90c85ddbb8de82cd19198bda062065fc51b7407c0f206f2e399e65a52e979720","33b9bbb39aef6bb880f6abd5e378b0a30f197f1dc1ad37297d62297ea0fead10","7e050b767ed10c7ffbc01f314defbf420bf0b5d54ce666e1c87507c035dfc191","aad3237c3f99480041cad7ca04d64307c98933996f822342b7c0ee4a78553346","baeda1fadac9fd31920480b85340ab9c4266a25ad08403dee8e15fd0751101fb","191c77646c22d3bd17c14c1d9dcc933b8bb133fdbdd42ec122dfeadf2ace8fb8","a6d8bae9447b5b4eedd25570e05c522928dd25dcafaf5458f4d1973ed44fa6e4","67bacfb62a1a36d2000a407ff53f21fe621224315db0c65c709b24da4337513f","48b3008f88017e25fb1c24897c5bb84be9e3526fbe4d688efc83eb98c3a532a3","c969bf4c7cdfe4d5dd28aa09432f99d09ad1d8d8b839959646579521d0467d1a","4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c","a376e245f494b58365a4391a2568e6dd9da372c3453f4732eb6e15ebb9038451","ffe8912b7c45288810c870b768190c6c097459930a587dd6ef0d900a5529a811","f53678bdb9f25445c8cdf021f2b003b74fd638e69bb1959dde8e370e8cc1e4fa","84044697c8b3e08ef24e4b32cfe6440143d07e469a5e34bda0635276d32d9f35","d6f0afa6352c2b3cb585402ef0acf5daf9adf7090a60d7d2912f52b1ce1d86fd",{"version":"0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e","affectsGlobalScope":true},"3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","9f633ecf3e065ff82c19eccab35c8aa1d6d5d1a49af282dc29ef5a64cca34164","6b2bb67b0942bcfce93e1d6fad5f70afd54940a2b13df7f311201fba54b2cbe9","a7b1725842348a2dece056c2183c668da763e1ce693bd32351ee3e21c99903b9","c4ce43b3b7c32abcd80c9cb29940f32811c78a8c40a210a7165ed99ad9008f29","7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","ff17638b6a2b877521f22ff0d96c9f30c8955c935f8c9adf7b67117b6f94833a","a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638","3c2ac350c3baa61fd2b1925844109e098f4376d0768a4643abc82754fd752748","4001971b90f18161f7bd46d68150d32a5da47e3f177956a267a2b29a2771896a","a0da0fcec2992a88e61efe6f41decf221dd8cefbb93a9bcd3a220f31375d0e61","289be113bad7ee27ee7fa5b1e373c964c9789a5e9ed7db5ddcb631371120b953","cb18c8bcbfdc551de1258885770cca8c87741fc7a9cfacb53f728b2ceee0a5d5","da33f527710ad7710f3ead36cf024e89f2ee82c861858cb60ee84817281917c1","2c98df0705574220bba64468a18762be95635c1da215b1bf6454c421c1dac987",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"14a6a3cee450438254c004a6b4f1191ec9977186bdeda07764f2a8d90ef71117","e9e43485d935d3550efb41b5be0aaabb7cbe6b0f337c3d6d9df2eb6564c498a7","d86cdb140a3a4fab04c776d3894cef9b2d0e9e42ea38c11ec7c79d2a4245c9ce","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","ef631a14611e5f3697f79d9222634131112a998aa0ad0e85b77aaf45b9ca04ab","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","725d9be2fd48440256f4deb00649adffdbc5ecd282b09e89d4e200663792c34c","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","725b884357ba84171341a8e4cc08edf11417854fd069842ca6d22afb2e340e45","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":99,"noImplicitAny":false,"outDir":"./","sourceMap":true,"strict":true,"suppressImplicitAnyIndexErrors":true,"target":2},"fileIdsList":[[33,51,53],[34,35,36,37,38,39,40],[51],[52],[55],[41,51],[42,51],[42,43,44,45,46,47,48,49,50],[34,36,37,38,39,51,54],[147,148],[117,124,133],[109,117,124],[113,118,125],[133],[115,117,124],[117],[117,133,139],[117,124,133,139],[117,118,119,124,133,136,139],[117,119,136,139],[149],[139],[115,117,133],[107],[138],[117,133],[131,140,142],[113,115,124,133],[106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[124],[130],[117,133,139,142],[150],[97],[56,62,64,74,82,91,94],[92,93],[56,62,64,74,82,84,88,91],[56,62,64,82,84,91,100],[57,58,59,60,61],[63],[66,83],[56,62,82],[56,65],[33,65,68,71],[72],[67],[71,73],[65],[82],[69,70],[96],[56,62],[56,74,82],[33,74,82],[75,76,77,78,79,80,81],[62],[56],[56,65,82],[56,58,59,82,90,95],[85,86,87],[89,90],[56,62,64,82,91,101],[101,102],[56,64,74,82,84,88],[117,150,153]],"referencedMap":[[54,1],[41,2],[35,3],[52,3],[53,4],[56,5],[42,6],[43,7],[51,8],[55,9],[149,10],[109,11],[110,12],[112,13],[113,14],[114,15],[116,16],[117,16],[118,17],[119,18],[120,19],[121,20],[150,21],[122,16],[123,22],[124,23],[127,24],[128,25],[131,26],[132,27],[133,16],[136,28],[147,29],[138,30],[139,31],[141,14],[143,32],[144,14],[151,33],[98,34],[99,34],[95,35],[94,36],[92,37],[93,38],[62,39],[64,40],[84,41],[83,42],[66,43],[72,44],[73,45],[68,46],[74,47],[69,48],[70,49],[71,50],[97,51],[65,51],[80,52],[75,53],[77,54],[82,55],[76,56],[81,57],[78,58],[96,59],[88,60],[85,57],[86,57],[87,57],[91,61],[89,49],[90,52],[102,62],[103,63],[101,64],[154,65]],"exportedModulesMap":[[54,1],[41,2],[35,3],[52,3],[53,4],[56,5],[42,6],[43,7],[51,8],[55,9],[149,10],[109,11],[110,12],[112,13],[113,14],[114,15],[116,16],[117,16],[118,17],[119,18],[120,19],[121,20],[150,21],[122,16],[123,22],[124,23],[127,24],[128,25],[131,26],[132,27],[133,16],[136,28],[147,29],[138,30],[139,31],[141,14],[143,32],[144,14],[151,33],[98,34],[99,34],[95,35],[94,36],[92,37],[93,38],[62,39],[64,40],[84,41],[83,42],[66,43],[72,44],[73,45],[68,46],[74,47],[69,48],[70,49],[71,50],[97,51],[65,51],[80,52],[75,53],[77,54],[82,55],[76,56],[81,57],[78,58],[96,59],[88,60],[85,57],[86,57],[87,57],[91,61],[89,49],[90,52],[102,62],[103,63],[101,64],[154,65]],"semanticDiagnosticsPerFile":[54,34,36,37,40,41,35,38,39,52,53,56,48,42,50,46,43,47,51,44,45,49,55,104,105,148,107,149,108,109,110,111,112,113,114,115,116,117,118,106,145,119,120,121,150,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,147,138,139,140,141,142,146,143,144,151,33,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9,98,99,95,94,92,93,59,62,57,61,60,58,63,64,84,83,66,72,73,67,68,74,69,70,71,97,65,80,75,77,82,76,79,81,78,96,88,85,86,87,91,89,90,100,102,103,101,152,154,155,153,156,157]},"version":"4.3.5"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/axios/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/client-config.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/oidc-endpoints.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/custom-grant-template-tags.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/parameters.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/scopes.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/environments.d.ts","../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/client-config.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/oidc-provider-meta-data.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/token.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/custom-grant.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/id-token.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/authorization-url.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/user.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/crypto.d.ts","../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts","../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts","../node_modules/@asgardeo/auth-js/dist/src/authentication-client.d.ts","../node_modules/@asgardeo/auth-js/dist/src/public-api.d.ts","../node_modules/@asgardeo/auth-js/dist/src/index.d.ts","../src/constants/messages-types.ts","../src/constants/storage.ts","../src/constants/hooks.ts","../src/constants/session-management.ts","../src/constants/parameters.ts","../src/constants/index.ts","../src/exception/exception.ts","../src/exception/index.ts","../src/index.ts","../src/helpers/spa-helper.ts","../src/http-client/helpers/decorators.ts","../src/http-client/helpers/index.ts","../src/http-client/models/axios-http-client.ts","../src/http-client/models/http-client.ts","../src/http-client/models/index.ts","../src/http-client/clients/axios-http-client.ts","../src/http-client/clients/index.ts","../src/http-client/index.ts","../src/models/client.ts","../src/models/message.ts","../src/models/http-client.ts","../src/models/web-worker.ts","../src/models/session-management-helper.ts","../src/models/client-config.ts","../src/models/sign-in.ts","../src/models/index.ts","../src/helpers/session-management-helper.ts","../src/helpers/index.ts","../src/stores/local-store.ts","../src/stores/memory-store.ts","../src/stores/session-store.ts","../src/stores/index.ts","../src/utils/message-utils.ts","../src/utils/spa-utils.ts","../src/utils/index.ts","../src/clients/main-thread-client.ts","../src/clients/web-worker-client.ts","../src/clients/index.ts","../src/client.ts","../src/public-api.ts","../src/index-polyfill.ts","../polyfilled/esm.d.ts","../polyfilled/umd.d.ts","../src/web-worker.d.ts","../src/worker/worker-core.ts","../src/worker/client.worker.ts","../src/worker/index.ts","../node_modules/@types/crypto-js/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/resolve/index.d.ts","../../node_modules/@types/eslint-visitor-keys/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"0d892f035dbee4534f0ba096407136877595ca592f67ec9bb8a5c912b9c967e8","6009474c65328718bc827d496d956b2fc7e31a3f643e0f260893b7d976619b80","8f1840a1bcc07dff7b2699ee094572773916dba87fc8d117991c4877f3015789","2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199","6d95d47e30b37d6343fbd45412107bf9f15a953b286bd38da70eb2f6be60cfb2","eb0e3a88b1c4129f1b8806e2088ecd5b5bb1d1a642cfaf097599e0962d7ef14f","1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4","1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188","b769da9db76c0a97e79e482fdb8c16cbfe9858e52b64d29251b9ae5e4c57328c","e00379f171286b46a85b97f8fc212da7317a64776557e91b0f60e3f00aecde13","5d7881988209b37a5e6787510c2827423082a5eff6ebe06c92db73f56b5f877b","9ff732b56ae6ed86f5285789b7db6590eeec4d1723d0aab0030cd0b198501185","a24a235aa6c4de52ec1f80ceddb83e12c068c8dbba57ea953ea9b7718bae96c9","825694ed40ad4a303a52a237b6b802db0bfa3863b7d8d567cb8a1d6320146f9e","f5208dad431ac789aa877218bd9cb927956dd70080be8a6d0ef1bb3338aa8297","6635b93bcfaa940eb5b2ce90bb90bebd6164ed48cf8f18195bdbdbbc6c45f5aa","f4930ac875f2a683b1bb2cfed759e3cc0a7e299729cbeadb844d9b594edf96e9","6118155581313325dbba17d5749d6afacea297d73330b3b3c00544277b8945d5","be1eb3d1d2134b38e8378537f6a1f3d8ce903099d5ca7a85a3fd8d22ecc2f297","9d34db4a49519acd58bc7ab38efe284d5c8832e20d9771dfa6d4c7a811fa097c","e8c3776e0a629f3ae805d16655d4d3f01d29638b64126361c35b2c95d4c1ca37","227377e02e082a35ac126a233c838e50c7cc4e19e49370fd4bab58bf0ca82724","4fa26edbe2cd2f0cd5becb3c28f2257fc43fbe3f0cbc1285af2f1f90d5caaab0","16477c5d5d66d2628a79168722da47a27b1f20331418852acccbdbe82294b70c","116a0c80e52b8437b3f4c693b167fafb648e46d27d6f6aff6b82700e405a6a10","c9b106e487f5552eb3854e49bf5956bd90c4c36fb0aeff0cc0b62b5b660eb1cf","bdddc9f1599d1b01c07b5a6e9da4629a58712972797ffc96be3fe5cd178dfa72","9ced747e5c237fb9a51b44ee8811ed66ba3665b362b5bec6e0af6d3b7df01c79","4b2d9035b3e6411d1b99b86991fa7f8d78453abbd5e256b4f6a74cd0e313debf","be327204faa5e238e666af2688a6ecfc48bac20ce379a32bee15d98b3d8d6ac3","7e6c0fb9e150f07ca6a9caa7b39aaa840d861a3cf307d8a9b72b5bb55c0ec027","fd1b6953785d5fbde4feda18020a8debdafdd0bd14c332a4178cd245a878e43f","1a5fd7fd06c35fceef3d43a0637fe370bfe1daa82f538b183cb065bb0aec3a78","98c679ad74f5dc65535f79a19f19fa3d1142bbe682792c0584ce1f11824c40b7","7c3ab924fd8494f286ad3966ebbcbcf7fe07d81bc3d928e1800b05d75a7fadac","c241721993235e5b85856909593605f12530c5e366f0456f5cd2158c19dcbad6","6da64e55101ad42112c2f2327c89f16abc5879c56042585882b32610c764778d","ed8d18f4db98a6038b2d818776a23e9d70c1c59b83368af2e5c525d7fea540fe","a21280e001d7c8996040872e63b114ca4d2a94476e0c741ee198248d0d2ddbd6","b7fb8f90b85ac9b8ada20a8b1a71200fd57e40a68470b27f7bb443cad5cb4df0","d373d738f77efc587af5b7cc4f0072af050dd4a7af7fd404928423052101139f","886f9c6cce85546bd9e7acdb8c3e3642418efe459dcf1f468c4c8ffa279427bd","d155c20be2e5f852a976525a804e2a58a5a83caad9638e7457010810990ab0aa","a3e17bcc39d20b51754832c09d10c45764de23bf7f44fbf1c9ff9a4093096a0c","b7c46f595bc3df944aa379ddf7ec537c9c758751115f2e10bdf8e9896c12b2fb","3ba1efa5b0b29dfb759a89ce1d9effbadeecbe625f210c2cf9118ed20746a8dd","8cd206283d14408df0998e4175d38dd629e41c7331efde8cae96a7419deb7825","19220cd1cbf685225e3f30f6d909920ed47e2ec5a188a3dd33e3231efc990f5b","e6ef854ad1e937ef95b0ddc9ad7a6c7cf60ca7d37dcd4d2db46e6a22b9921bb3","d93adf1ea2eef8c54cb41fdfb8541c6443725662a1adb5dad80c0dac4d8d61bf","9eb0985a66d38f0e14fdfbaeb4e1ef7a7d5f989a1da55c7c877603758fab949d","6fdb3f5a7f50a9a330fe71b975d92dad426632931bce0852988dbd727797a8b7","b3643471b0860e55440721bc05499b5c6373d5ad8aad96d429a78484024176a9","789a86243d9f9d1d2816f005c924c07e4054193bcd9a5dccb9b683722251586b","4ac58569ec95e39656dff0a8b5cd43d847bb537d6ebf85c5cfe5fadbfe65cae5","a403cebc4c34b09157a0abdbed93e79e5f4055d36072f858a6db85cb8dea5f12","2a3ee5ceba0a31af3ccb8065831a9681fa378f318fdcfbd01d005c6cdcaa6b36","114a351678b5c24bcf7ff3b121ac5242ad9010e7a3420b9ad9b4ed92681af139","093ceafe704d2244ba3e297d7ce665d7f2e4a7112cf1334a9373b76acb9402a8","7fb72edec18466f4c0e8075d97241926dd421ccf4d6ad691ae356ebef0c445be","e7751a40b81454bb5c5e1b383cf47a8c5ababa35f677df1dc7baf20dfa5ff073","671315ee8d597ab350f046802451dc7176d8a1aa08580c6d6275aae87bb9f9bb","5072abdbe7d09d315ddd3c9779ad67fb8347d207c2d253eb6a97f09d9772a19f","d6ce89e3e6f99b71c87dd15606b62e5196ca3f23d78902743770c1ef960cdb06","0d4401a656f3d5480631a345ade69ef23a880ebd4c599f9230d0a3a8cca08253","99fc1afc2ee80d9ccca4185b67de2123563287ba59f7f717368cc70722383b3e","99fc1afc2ee80d9ccca4185b67de2123563287ba59f7f717368cc70722383b3e","b7250063a1605fc45ce68674b4a6941a8f44cc9493cb9b1f4119c6912042cfee","f3d6a1cacd24d5003fc436351ef263118c0b213481384960ae910400ed0d630c","60d6035a6aa03feac75bcae8b8fca97fbf52823aba81b5cc5c0e921f5527c043","12cd176460fc2e3593aa8056528063470c76d5af93919c6c77797f4298bcbc93","7eda637d5e9f03a2c6ddf6cd8880e7ac96fa17b048ad05213d18a7813d0c2861","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b",{"version":"c98a21476edf4bb50ee872b492e70f3a9c407778e276555ea0ee006983f350a8","affectsGlobalScope":true},"726b22a7926e82a6013c11f8de5dfd6ddfb4b830693fa43ac391d2d69a3ad814","61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878","4812adce4c4e9b4a29f1458737a7e8110cbed3864b94ae8ac975f6d6fbaf7f46","123ec69e4b3a686eb49afd94ebe3292a5c84a867ecbcb6bb84bdd720a12af803","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","90c85ddbb8de82cd19198bda062065fc51b7407c0f206f2e399e65a52e979720","33b9bbb39aef6bb880f6abd5e378b0a30f197f1dc1ad37297d62297ea0fead10","7e050b767ed10c7ffbc01f314defbf420bf0b5d54ce666e1c87507c035dfc191","aad3237c3f99480041cad7ca04d64307c98933996f822342b7c0ee4a78553346","baeda1fadac9fd31920480b85340ab9c4266a25ad08403dee8e15fd0751101fb","191c77646c22d3bd17c14c1d9dcc933b8bb133fdbdd42ec122dfeadf2ace8fb8","a6d8bae9447b5b4eedd25570e05c522928dd25dcafaf5458f4d1973ed44fa6e4","67bacfb62a1a36d2000a407ff53f21fe621224315db0c65c709b24da4337513f","48b3008f88017e25fb1c24897c5bb84be9e3526fbe4d688efc83eb98c3a532a3","c969bf4c7cdfe4d5dd28aa09432f99d09ad1d8d8b839959646579521d0467d1a","4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c","a376e245f494b58365a4391a2568e6dd9da372c3453f4732eb6e15ebb9038451","ffe8912b7c45288810c870b768190c6c097459930a587dd6ef0d900a5529a811","f53678bdb9f25445c8cdf021f2b003b74fd638e69bb1959dde8e370e8cc1e4fa","84044697c8b3e08ef24e4b32cfe6440143d07e469a5e34bda0635276d32d9f35","d6f0afa6352c2b3cb585402ef0acf5daf9adf7090a60d7d2912f52b1ce1d86fd",{"version":"0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e","affectsGlobalScope":true},"3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","9f633ecf3e065ff82c19eccab35c8aa1d6d5d1a49af282dc29ef5a64cca34164","6b2bb67b0942bcfce93e1d6fad5f70afd54940a2b13df7f311201fba54b2cbe9","a7b1725842348a2dece056c2183c668da763e1ce693bd32351ee3e21c99903b9","c4ce43b3b7c32abcd80c9cb29940f32811c78a8c40a210a7165ed99ad9008f29","7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","ff17638b6a2b877521f22ff0d96c9f30c8955c935f8c9adf7b67117b6f94833a","a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638","3c2ac350c3baa61fd2b1925844109e098f4376d0768a4643abc82754fd752748","4001971b90f18161f7bd46d68150d32a5da47e3f177956a267a2b29a2771896a","a0da0fcec2992a88e61efe6f41decf221dd8cefbb93a9bcd3a220f31375d0e61","289be113bad7ee27ee7fa5b1e373c964c9789a5e9ed7db5ddcb631371120b953","cb18c8bcbfdc551de1258885770cca8c87741fc7a9cfacb53f728b2ceee0a5d5","da33f527710ad7710f3ead36cf024e89f2ee82c861858cb60ee84817281917c1","2c98df0705574220bba64468a18762be95635c1da215b1bf6454c421c1dac987",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"14a6a3cee450438254c004a6b4f1191ec9977186bdeda07764f2a8d90ef71117","e9e43485d935d3550efb41b5be0aaabb7cbe6b0f337c3d6d9df2eb6564c498a7","d86cdb140a3a4fab04c776d3894cef9b2d0e9e42ea38c11ec7c79d2a4245c9ce","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","ef631a14611e5f3697f79d9222634131112a998aa0ad0e85b77aaf45b9ca04ab","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","725d9be2fd48440256f4deb00649adffdbc5ecd282b09e89d4e200663792c34c","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","725b884357ba84171341a8e4cc08edf11417854fd069842ca6d22afb2e340e45","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":99,"noImplicitAny":false,"outDir":"./","sourceMap":true,"strict":true,"suppressImplicitAnyIndexErrors":true,"target":2},"fileIdsList":[[33,51,53],[34,35,36,37,38,39,40],[51],[52],[55],[41,51],[42,51],[42,43,44,45,46,47,48,49,50],[34,36,37,38,39,51,54],[147,148],[117,124,133],[109,117,124],[113,118,125],[133],[115,117,124],[117],[117,133,139],[117,124,133,139],[117,118,119,124,133,136,139],[117,119,136,139],[149],[139],[115,117,133],[107],[138],[117,133],[131,140,142],[113,115,124,133],[106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[124],[130],[117,133,139,142],[150],[97],[56,62,64,74,82,91,94],[92,93],[56,62,64,74,82,84,88,91],[56,62,64,82,84,91,100],[57,58,59,60,61],[63],[66,83],[56,62,65,82],[56,65],[33,65,68,71],[72],[67],[71,73],[65],[82],[69,70],[96],[56,62],[56,74,82],[33,74,82],[75,76,77,78,79,80,81],[62],[56],[56,65,82],[56,58,59,82,90,95],[85,86,87],[89,90],[56,62,64,82,91,101],[101,102],[56,64,74,82,84,88],[117,150,153]],"referencedMap":[[54,1],[41,2],[35,3],[52,3],[53,4],[56,5],[42,6],[43,7],[51,8],[55,9],[149,10],[109,11],[110,12],[112,13],[113,14],[114,15],[116,16],[117,16],[118,17],[119,18],[120,19],[121,20],[150,21],[122,16],[123,22],[124,23],[127,24],[128,25],[131,26],[132,27],[133,16],[136,28],[147,29],[138,30],[139,31],[141,14],[143,32],[144,14],[151,33],[98,34],[99,34],[95,35],[94,36],[92,37],[93,38],[62,39],[64,40],[84,41],[83,42],[66,43],[72,44],[73,45],[68,46],[74,47],[69,48],[70,49],[71,50],[97,51],[65,51],[80,52],[75,53],[77,54],[82,55],[76,56],[81,57],[78,58],[96,59],[88,60],[85,57],[86,57],[87,57],[91,61],[89,49],[90,52],[102,62],[103,63],[101,64],[154,65]],"exportedModulesMap":[[54,1],[41,2],[35,3],[52,3],[53,4],[56,5],[42,6],[43,7],[51,8],[55,9],[149,10],[109,11],[110,12],[112,13],[113,14],[114,15],[116,16],[117,16],[118,17],[119,18],[120,19],[121,20],[150,21],[122,16],[123,22],[124,23],[127,24],[128,25],[131,26],[132,27],[133,16],[136,28],[147,29],[138,30],[139,31],[141,14],[143,32],[144,14],[151,33],[98,34],[99,34],[95,35],[94,36],[92,37],[93,38],[62,39],[64,40],[84,41],[83,42],[66,43],[72,44],[73,45],[68,46],[74,47],[69,48],[70,49],[71,50],[97,51],[65,51],[80,52],[75,53],[77,54],[82,55],[76,56],[81,57],[78,58],[96,59],[88,60],[85,57],[86,57],[87,57],[91,61],[89,49],[90,52],[102,62],[103,63],[101,64],[154,65]],"semanticDiagnosticsPerFile":[54,34,36,37,40,41,35,38,39,52,53,56,48,42,50,46,43,47,51,44,45,49,55,104,105,148,107,149,108,109,110,111,112,113,114,115,116,117,118,106,145,119,120,121,150,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,147,138,139,140,141,142,146,143,144,151,33,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9,98,99,95,94,92,93,59,62,57,61,60,58,63,64,84,83,66,72,73,67,68,74,69,70,71,97,65,80,75,77,82,76,79,81,78,96,88,85,86,87,91,89,90,100,102,103,101,152,154,155,153,156,157]},"version":"4.3.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/auth-spa",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Asgardeo Auth SPA SDK to be used in Single-Page Applications.",
5
5
  "keywords": [
6
6
  "Asgardeo",
@@ -25,7 +25,7 @@
25
25
  "author": "Asgardeo",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@asgardeo/auth-js": "^0.2.11",
28
+ "@asgardeo/auth-js": "^0.2.12",
29
29
  "@babel/runtime-corejs3": "^7.11.2",
30
30
  "await-semaphore": "^0.1.3",
31
31
  "axios": "^0.21.0",
package/src/client.ts CHANGED
@@ -296,7 +296,7 @@ export class AsgardeoSPAClient {
296
296
  sessionState?: string
297
297
  ): Promise<BasicUserInfo | undefined> {
298
298
  await this._isInitialized();
299
- if (!SPAUtils.setInitializedSignIn(Boolean(config?.callOnlyOnRedirect))) {
299
+ if (!SPAUtils.setInitializedSignIn(Boolean(config?.callOnlyOnRedirect)) && !SPAUtils.isStatePresentInURL()) {
300
300
  return;
301
301
  }
302
302
 
@@ -328,6 +328,8 @@ export class AsgardeoSPAClient {
328
328
  */
329
329
  public async trySignInSilently(): Promise<BasicUserInfo | boolean | undefined> {
330
330
  await this._isInitialized();
331
+
332
+ // checks if the `signIn` method was called before and this method was not called.
331
333
  if (SPAUtils.wasSignInCalled()) {
332
334
  return;
333
335
  }
@@ -297,14 +297,14 @@ export const MainThreadClient = async (
297
297
  ): Promise<BasicUserInfo> => {
298
298
  const config = await _dataLayer.getConfigData();
299
299
 
300
- const isLoggingOut = await _sessionManagementHelper.receivePromptNoneResponse(
300
+ const shouldStopContinue = await _sessionManagementHelper.receivePromptNoneResponse(
301
301
  async (sessionState: string | null) => {
302
302
  await _dataLayer.setSessionDataParameter(SESSION_STATE, sessionState ?? "");
303
303
  return;
304
304
  }
305
305
  );
306
306
 
307
- if (isLoggingOut) {
307
+ if (shouldStopContinue) {
308
308
  return Promise.resolve({
309
309
  allowedScopes: "",
310
310
  displayName: "",
@@ -375,6 +375,8 @@ export const MainThreadClient = async (
375
375
 
376
376
  location.href = url;
377
377
 
378
+ await SPAUtils.waitTillPageRedirect();
379
+
378
380
  return Promise.resolve({
379
381
  allowedScopes: "",
380
382
  displayName: "",
@@ -395,10 +397,12 @@ export const MainThreadClient = async (
395
397
 
396
398
  _spaHelper.clearRefreshTokenTimeout();
397
399
 
400
+ await SPAUtils.waitTillPageRedirect();
401
+
398
402
  return true;
399
403
  };
400
404
 
401
- const requestCustomGrant = async(config: CustomGrantConfig): Promise<BasicUserInfo | HttpResponse> => {
405
+ const requestCustomGrant = async (config: CustomGrantConfig): Promise<BasicUserInfo | HttpResponse> => {
402
406
  let useDefaultEndpoint = true;
403
407
  let matches = false;
404
408
  const clientConfig = await _dataLayer.getConfigData();
@@ -440,8 +444,8 @@ export const MainThreadClient = async (
440
444
  "requestCustomGrant",
441
445
  "Request to the provided endpoint is prohibited.",
442
446
  "Requests can only be sent to resource servers specified by the `resourceServerURLs`" +
443
- " attribute while initializing the SDK. The specified token endpoint in this request " +
444
- "cannot be found among the `resourceServerURLs`"
447
+ " attribute while initializing the SDK. The specified token endpoint in this request " +
448
+ "cannot be found among the `resourceServerURLs`"
445
449
  )
446
450
  );
447
451
  }
@@ -565,9 +569,13 @@ export const MainThreadClient = async (
565
569
  return new Promise((resolve, reject) => {
566
570
  const listenToPromptNoneIFrame = async (e: MessageEvent) => {
567
571
  const data: Message<AuthorizationInfo | null> = e.data;
572
+ const timer = setTimeout(() => {
573
+ resolve(false);
574
+ }, 10000);
568
575
 
569
576
  if (data?.type == CHECK_SESSION_SIGNED_OUT) {
570
577
  window.removeEventListener("message", listenToPromptNoneIFrame);
578
+ clearTimeout(timer);
571
579
  resolve(false);
572
580
  }
573
581
 
@@ -575,10 +583,12 @@ export const MainThreadClient = async (
575
583
  requestAccessToken(data.data.code, data?.data?.sessionState)
576
584
  .then((response: BasicUserInfo) => {
577
585
  window.removeEventListener("message", listenToPromptNoneIFrame);
586
+ clearTimeout(timer);
578
587
  resolve(response);
579
588
  })
580
589
  .catch((error) => {
581
590
  window.removeEventListener("message", listenToPromptNoneIFrame);
591
+ clearTimeout(timer);
582
592
  reject(error);
583
593
  });
584
594
  }
@@ -329,6 +329,7 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
329
329
  const trySignInSilently = async (): Promise<BasicUserInfo | boolean> => {
330
330
  const config: AuthClientConfig<WebWorkerClientConfig> = await getConfigData();
331
331
 
332
+ // This block is executed by the iFrame when the server redirects with the authorization code.
332
333
  if (SPAUtils.setIsInitializedSilentSignIn()) {
333
334
  await _sessionManagementHelper.receivePromptNoneResponse();
334
335
 
@@ -343,6 +344,11 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
343
344
  }
344
345
 
345
346
  if (SPAUtils.isStatePresentInURL()) {
347
+ // The state that is used to detect the auth request sent by this method is not there in the URL.
348
+ // Happens if it is the first time this method is being called.
349
+ // Or when this method is called inside the iFrame during the check session execution.
350
+
351
+ // This reverses the silent sign in flag being set to true by the previous code block.
346
352
  SPAUtils.setIsInitializedSilentSignIn();
347
353
 
348
354
  return Promise.resolve({
@@ -355,6 +361,7 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
355
361
  });
356
362
  }
357
363
 
364
+ // This gets executed in the main thread and sends the prompt none request.
358
365
  const rpIFrame = document.getElementById(RP_IFRAME) as HTMLIFrameElement;
359
366
 
360
367
  const promptNoneIFrame: HTMLIFrameElement = rpIFrame?.contentDocument?.getElementById(
@@ -382,25 +389,31 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
382
389
  return new Promise((resolve, reject) => {
383
390
  const listenToPromptNoneIFrame = async (e: MessageEvent) => {
384
391
  const data: Message<AuthorizationInfo | null> = e.data;
392
+ const timer = setTimeout(() => {
393
+ resolve(false);
394
+ }, 10000);
385
395
 
386
396
  if (data?.type == CHECK_SESSION_SIGNED_OUT) {
387
397
  window.removeEventListener("message", listenToPromptNoneIFrame);
398
+ clearTimeout(timer);
388
399
  resolve(false);
389
400
  }
390
401
 
391
402
  if (data?.type == CHECK_SESSION_SIGNED_IN && data?.data?.code) {
392
403
  requestAccessToken(data?.data?.code, data?.data?.sessionState).then((response: BasicUserInfo) => {
393
404
  window.removeEventListener("message", listenToPromptNoneIFrame);
405
+ clearTimeout(timer);
394
406
  resolve(response);
395
407
  }).catch((error) => {
396
408
  window.removeEventListener("message", listenToPromptNoneIFrame);
409
+ clearTimeout(timer);
397
410
  reject(error);
398
411
  })
399
412
 
400
413
  }
401
414
  };
402
415
 
403
- window.addEventListener("message", listenToPromptNoneIFrame)
416
+ window.addEventListener("message", listenToPromptNoneIFrame);
404
417
  });
405
418
  };
406
419
 
@@ -436,6 +449,8 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
436
449
  checkSession();
437
450
  }
438
451
 
452
+ startAutoRefreshToken();
453
+
439
454
  return Promise.resolve(response);
440
455
  })
441
456
  .catch((error) => {
@@ -459,13 +474,13 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
459
474
  ): Promise<BasicUserInfo> => {
460
475
  const config: AuthClientConfig<WebWorkerClientConfig> = await getConfigData();
461
476
 
462
- const isLoggingOut = await _sessionManagementHelper.receivePromptNoneResponse(
477
+ const shouldStopContinue = await _sessionManagementHelper.receivePromptNoneResponse(
463
478
  async (sessionState: string | null) => {
464
479
  return setSessionState(sessionState);
465
480
  }
466
481
  );
467
482
 
468
- if (isLoggingOut) {
483
+ if (shouldStopContinue) {
469
484
  return Promise.resolve({
470
485
  allowedScopes: "",
471
486
  displayName: "",
@@ -534,13 +549,15 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
534
549
  };
535
550
 
536
551
  return communicate<GetAuthURLConfig, AuthorizationResponse>(message)
537
- .then((response) => {
552
+ .then(async (response) => {
538
553
  if (response.pkce && config.enablePKCE) {
539
554
  SPAUtils.setPKCE(response.pkce);
540
555
  }
541
556
 
542
557
  location.href = response.authorizationURL;
543
558
 
559
+ await SPAUtils.waitTillPageRedirect();
560
+
544
561
  return Promise.resolve({
545
562
  allowedScopes: "",
546
563
  displayName: "",
@@ -562,16 +579,18 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
562
579
  */
563
580
  const signOut = (): Promise<boolean> => {
564
581
  return isAuthenticated()
565
- .then((response: boolean) => {
582
+ .then(async (response: boolean) => {
566
583
  if (response) {
567
584
  const message: Message<null> = {
568
585
  type: SIGN_OUT
569
586
  };
570
587
 
571
588
  return communicate<null, string>(message)
572
- .then((response) => {
589
+ .then(async (response) => {
573
590
  window.location.href = response;
574
591
 
592
+ await SPAUtils.waitTillPageRedirect();
593
+
575
594
  return Promise.resolve(true);
576
595
  })
577
596
  .catch((error) => {
@@ -580,6 +599,8 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
580
599
  } else {
581
600
  window.location.href = SPAUtils.getSignOutURL();
582
601
 
602
+ await SPAUtils.waitTillPageRedirect();
603
+
583
604
  return Promise.resolve(true);
584
605
  }
585
606
  })
@@ -626,14 +647,14 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
626
647
  type: GET_CONFIG_DATA
627
648
  };
628
649
 
629
- return communicate< null, AuthClientConfig<WebWorkerClientConfig>>(message)
650
+ return communicate<null, AuthClientConfig<WebWorkerClientConfig>>(message)
630
651
  .then((response) => {
631
652
  return Promise.resolve(response);
632
653
  })
633
654
  .catch((error) => {
634
655
  return Promise.reject(error);
635
- })
636
- }
656
+ });
657
+ };
637
658
 
638
659
  const getBasicUserInfo = (): Promise<BasicUserInfo> => {
639
660
  const message: Message<null> = {
@@ -723,9 +744,8 @@ export const WebWorkerClient = (config: AuthClientConfig<WebWorkerClientConfig>)
723
744
  }
724
745
  };
725
746
 
726
- const updateConfig = async(newConfig: Partial<AuthClientConfig<WebWorkerClientConfig>>): Promise<void> => {
727
-
728
- const config = { ...await getConfigData(), ...newConfig };
747
+ const updateConfig = async (newConfig: Partial<AuthClientConfig<WebWorkerClientConfig>>): Promise<void> => {
748
+ const config = { ...(await getConfigData()), ...newConfig };
729
749
 
730
750
  const message: Message<Partial<AuthClientConfig<WebWorkerClientConfig>>> = {
731
751
  data: config,
@@ -23,3 +23,4 @@ export const STATE = "Y2hlY2tTZXNzaW9u";
23
23
  export const SILENT_SIGN_IN_STATE = "sign-in-silently";
24
24
  export const INITIALIZED_SIGN_IN = "initialized-sign-in";
25
25
  export const INITIALIZED_SILENT_SIGN_IN = "initialized-silent-sign-in";
26
+ export const PROMPT_NONE_REQUEST_SENT = "promptNoneRequestSent";
@@ -17,6 +17,7 @@
17
17
  */
18
18
 
19
19
  import { SESSION_STATE } from "@asgardeo/auth-js";
20
+ import { SPAUtils } from "..";
20
21
  import {
21
22
  CHECK_SESSION_SIGNED_IN,
22
23
  CHECK_SESSION_SIGNED_OUT,
@@ -134,7 +135,7 @@ export const SessionManagementHelper = (() => {
134
135
  if (e.data === "unchanged") {
135
136
  // [RP] session state has not changed
136
137
  } else if (e.data === "error") {
137
- window.top.location.href = await _signOut();
138
+ window.parent.location.href = await _signOut();
138
139
  } else {
139
140
  // [RP] session state has changed. Sending prompt=none request...
140
141
  sendPromptNoneRequest();
@@ -150,19 +151,24 @@ export const SessionManagementHelper = (() => {
150
151
  const promptNoneIFrame: HTMLIFrameElement = rpIFrame?.contentDocument?.getElementById(
151
152
  PROMPT_NONE_IFRAME
152
153
  ) as HTMLIFrameElement;
153
- promptNoneIFrame.src =
154
- _authorizationEndpoint +
155
- "?response_type=code" +
156
- "&client_id=" +
157
- _clientID +
158
- "&scope=openid" +
159
- "&redirect_uri=" +
160
- _redirectURL +
161
- "&state=" +
162
- STATE +
163
- "&prompt=none" +
164
- "&code_challenge_method=S256&code_challenge=" +
165
- getRandomPKCEChallenge();
154
+
155
+ if (SPAUtils.canSendPromptNoneRequest()) {
156
+ SPAUtils.setPromptNoneRequestSent(true);
157
+
158
+ promptNoneIFrame.src =
159
+ _authorizationEndpoint +
160
+ "?response_type=code" +
161
+ "&client_id=" +
162
+ _clientID +
163
+ "&scope=openid" +
164
+ "&redirect_uri=" +
165
+ _redirectURL +
166
+ "&state=" +
167
+ STATE +
168
+ "&prompt=none" +
169
+ "&code_challenge_method=S256&code_challenge=" +
170
+ getRandomPKCEChallenge();
171
+ }
166
172
  };
167
173
 
168
174
  /**
@@ -176,6 +182,7 @@ export const SessionManagementHelper = (() => {
176
182
  ): Promise<boolean> => {
177
183
  const state = new URL(window.location.href).searchParams.get("state");
178
184
  const sessionState = new URL(window.location.href).searchParams.get(SESSION_STATE);
185
+ const parent = window.parent.parent;
179
186
 
180
187
  if (state !== null && (state === STATE || state === SILENT_SIGN_IN_STATE)) {
181
188
  // Prompt none response.
@@ -192,17 +199,26 @@ export const SessionManagementHelper = (() => {
192
199
  };
193
200
 
194
201
  sessionStorage.setItem(INITIALIZED_SILENT_SIGN_IN, "false");
195
- window.top.postMessage(message, window.top.origin);
202
+ parent.postMessage(message, parent.origin);
203
+ SPAUtils.setPromptNoneRequestSent(false);
204
+
196
205
  window.location.href = "about:blank";
197
206
 
207
+ await SPAUtils.waitTillPageRedirect();
208
+
198
209
  return true;
199
210
  }
200
211
 
201
212
  const newSessionState = new URL(window.location.href).searchParams.get("session_state");
202
213
 
203
214
  setSessionState && await setSessionState(newSessionState);
215
+ SPAUtils.setPromptNoneRequestSent(false);
216
+
217
+ window.location.href = "about:blank";
204
218
 
205
- window.stop();
219
+ await SPAUtils.waitTillPageRedirect();
220
+
221
+ return true;
206
222
  } else {
207
223
  if (state === SILENT_SIGN_IN_STATE) {
208
224
  const message: Message<null> = {
@@ -210,15 +226,23 @@ export const SessionManagementHelper = (() => {
210
226
  };
211
227
 
212
228
  sessionStorage.setItem(INITIALIZED_SILENT_SIGN_IN, "false");
213
- window.top.postMessage(message, window.top.origin);
229
+ window.parent.parent.postMessage(message, parent.origin);
230
+ SPAUtils.setPromptNoneRequestSent(false);
231
+
214
232
  window.location.href = "about:blank";
215
233
 
234
+ await SPAUtils.waitTillPageRedirect();
235
+
216
236
  return true;
217
237
  }
218
238
 
219
- window.top.location.href = await _signOut();
239
+ SPAUtils.setPromptNoneRequestSent(false);
240
+
241
+ parent.location.href = await _signOut();
220
242
  window.location.href = "about:blank";
221
243
 
244
+ await SPAUtils.waitTillPageRedirect();
245
+
222
246
  return true;
223
247
  }
224
248
  }
@@ -17,7 +17,13 @@
17
17
  */
18
18
 
19
19
  import { AsgardeoAuthClient, PKCE_CODE_VERIFIER, SIGN_OUT_URL } from "@asgardeo/auth-js";
20
- import { INITIALIZED_SIGN_IN, INITIALIZED_SILENT_SIGN_IN, SILENT_SIGN_IN_STATE, STATE } from "../constants";
20
+ import {
21
+ INITIALIZED_SIGN_IN,
22
+ INITIALIZED_SILENT_SIGN_IN,
23
+ PROMPT_NONE_REQUEST_SENT,
24
+ SILENT_SIGN_IN_STATE,
25
+ STATE
26
+ } from "../constants";
21
27
 
22
28
  export class SPAUtils {
23
29
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -69,6 +75,11 @@ export class SPAUtils {
69
75
  }
70
76
  }
71
77
 
78
+ /**
79
+ * Specifies if `trySilentSignIn` has been called.
80
+ *
81
+ * @returns {boolean} True if the `trySilentSignIn` method has been called once.
82
+ */
72
83
  public static setIsInitializedSilentSignIn(): boolean {
73
84
  const sessionIsInitialized = sessionStorage.getItem(INITIALIZED_SILENT_SIGN_IN);
74
85
  const isInitialized = sessionIsInitialized ? JSON.parse(sessionIsInitialized) : null;
@@ -84,6 +95,11 @@ export class SPAUtils {
84
95
  }
85
96
  }
86
97
 
98
+ /**
99
+ * Specifies if the `signIn` method has been called.
100
+ *
101
+ * @returns {boolean} True if the `signIn` has been called once and `trySilentSignIn` has not been called.
102
+ */
87
103
  public static wasSignInCalled(): boolean {
88
104
  const sessionIsInitialized = sessionStorage.getItem(INITIALIZED_SIGN_IN);
89
105
  const isInitialized = sessionIsInitialized ? JSON.parse(sessionIsInitialized) : null;
@@ -112,6 +128,11 @@ export class SPAUtils {
112
128
  return false;
113
129
  }
114
130
 
131
+ /**
132
+ * Checks if the URL the user agent is redirected to after an authorization request has the state parameter.
133
+ *
134
+ * @returns {boolean} True if there is a session-check state or a silent sign-in state.
135
+ */
115
136
  public static isStatePresentInURL(): boolean {
116
137
  const state = new URL(window.location.href).searchParams.get("state");
117
138
 
@@ -126,10 +147,45 @@ export class SPAUtils {
126
147
  * @return {boolean}
127
148
  */
128
149
  public static hasAuthSearchParamsInURL(params: string = window.location.search): boolean {
129
-
130
150
  const AUTH_CODE_REGEXP: RegExp = /[?&]code=[^&]+/;
131
151
  const SESSION_STATE_REGEXP: RegExp = /[?&]session_state=[^&]+/;
132
152
 
133
153
  return AUTH_CODE_REGEXP.test(params) && SESSION_STATE_REGEXP.test(params);
134
- }
154
+ }
155
+
156
+ /**
157
+ * Checks if a prompt none can be sent by checking if a request has already been sent.
158
+ *
159
+ * @since 0.2.3
160
+ *
161
+ * @returns {boolean} - True if a prompt none request has not been sent.
162
+ */
163
+ public static canSendPromptNoneRequest(): boolean {
164
+ const promptNoneRequestSentRaw = sessionStorage.getItem(PROMPT_NONE_REQUEST_SENT);
165
+ const promptNoneRequestSent = promptNoneRequestSentRaw ? JSON.parse(promptNoneRequestSentRaw) : null;
166
+
167
+ return !promptNoneRequestSent;
168
+ }
169
+
170
+ /**
171
+ * Sets the status of prompt none request.
172
+ *
173
+ * @since 0.2.3
174
+ *
175
+ * @param canSend {boolean} - True if a prompt none request can be sent.
176
+ */
177
+ public static setPromptNoneRequestSent(canSend: boolean): void {
178
+ sessionStorage.setItem(PROMPT_NONE_REQUEST_SENT, JSON.stringify(canSend));
179
+ }
180
+
181
+ /**
182
+ * Waits for a specified amount of time to give the user agent enough time to redirect.
183
+ *
184
+ * @param time {number} - Time in seconds.
185
+ */
186
+ public static async waitTillPageRedirect(time?: number): Promise<void> {
187
+ const timeToWait = time ?? 3000;
188
+
189
+ await new Promise((resolve) => setTimeout(resolve, timeToWait * 1000));
190
+ }
135
191
  }