@asgardeo/auth-spa 0.3.13 → 0.4.2
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.
- package/README.md +44 -21
- package/dist/asgardeo-spa.production.esm.js +42 -6
- package/dist/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/asgardeo-spa.production.js +46 -10
- package/dist/asgardeo-spa.production.js.map +1 -1
- package/dist/asgardeo-spa.production.min.js +1 -1
- package/dist/asgardeo-spa.production.min.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.esm.js +74 -38
- package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.js +74 -38
- package/dist/polyfilled/asgardeo-spa.production.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.min.js +1 -1
- package/dist/polyfilled/asgardeo-spa.production.min.js.map +1 -1
- package/dist/src/client.d.ts +22 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +29 -2
- package/dist/src/client.js.map +1 -1
- package/dist/src/clients/main-thread-client.d.ts.map +1 -1
- package/dist/src/clients/main-thread-client.js +10 -1
- package/dist/src/clients/main-thread-client.js.map +1 -1
- package/dist/src/clients/web-worker-client.d.ts.map +1 -1
- package/dist/src/clients/web-worker-client.js +27 -1
- package/dist/src/clients/web-worker-client.js.map +1 -1
- package/dist/src/constants/messages-types.d.ts +2 -0
- package/dist/src/constants/messages-types.d.ts.map +1 -1
- package/dist/src/constants/messages-types.js +2 -0
- package/dist/src/constants/messages-types.js.map +1 -1
- package/dist/src/helpers/authentication-helper.d.ts +4 -1
- package/dist/src/helpers/authentication-helper.d.ts.map +1 -1
- package/dist/src/helpers/authentication-helper.js +16 -0
- package/dist/src/helpers/authentication-helper.js.map +1 -1
- package/dist/src/helpers/session-management-helper.d.ts.map +1 -1
- package/dist/src/helpers/session-management-helper.js +0 -1
- package/dist/src/helpers/session-management-helper.js.map +1 -1
- package/dist/src/http-client/clients/axios-http-client.d.ts.map +1 -1
- package/dist/src/http-client/clients/axios-http-client.js +1 -0
- package/dist/src/http-client/clients/axios-http-client.js.map +1 -1
- package/dist/src/models/client.d.ts +4 -1
- package/dist/src/models/client.d.ts.map +1 -1
- package/dist/src/models/http-client.d.ts +8 -3
- package/dist/src/models/http-client.d.ts.map +1 -1
- package/dist/src/models/message.d.ts +2 -2
- package/dist/src/models/message.d.ts.map +1 -1
- package/dist/src/models/web-worker.d.ts +3 -1
- package/dist/src/models/web-worker.d.ts.map +1 -1
- package/dist/src/models/web-worker.js.map +1 -1
- package/dist/src/public-api.d.ts +3 -0
- package/dist/src/public-api.d.ts.map +1 -1
- package/dist/src/public-api.js +5 -0
- package/dist/src/public-api.js.map +1 -1
- package/dist/src/worker/worker-core.d.ts.map +1 -1
- package/dist/src/worker/worker-core.js +14 -1
- package/dist/src/worker/worker-core.js.map +1 -1
- package/dist/src/worker/worker-receiver.d.ts.map +1 -1
- package/dist/src/worker/worker-receiver.js +9 -1
- package/dist/src/worker/worker-receiver.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/client.ts +31 -4
- package/src/clients/main-thread-client.ts +18 -4
- package/src/clients/web-worker-client.ts +33 -0
- package/src/constants/messages-types.ts +2 -0
- package/src/helpers/authentication-helper.ts +13 -0
- package/src/helpers/session-management-helper.ts +0 -1
- package/src/http-client/clients/axios-http-client.ts +2 -0
- package/src/models/client.ts +4 -0
- package/src/models/http-client.ts +9 -4
- package/src/models/message.ts +4 -0
- package/src/models/web-worker.ts +3 -0
- package/src/public-api.ts +7 -0
- package/src/worker/worker-core.ts +22 -4
- package/src/worker/worker-receiver.ts +9 -0
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
GET_AUTH_URL,
|
|
30
30
|
GET_BASIC_USER_INFO,
|
|
31
31
|
GET_CONFIG_DATA,
|
|
32
|
+
GET_CRYPTO_HELPER,
|
|
32
33
|
GET_DECODED_ID_TOKEN,
|
|
33
34
|
GET_ID_TOKEN,
|
|
34
35
|
GET_OIDC_SERVICE_ENDPOINTS,
|
|
@@ -195,6 +196,14 @@ export const workerReceiver = (
|
|
|
195
196
|
port.postMessage(MessageUtils.generateFailureMessage(error));
|
|
196
197
|
}
|
|
197
198
|
|
|
199
|
+
break;
|
|
200
|
+
case GET_CRYPTO_HELPER:
|
|
201
|
+
try {
|
|
202
|
+
port.postMessage(MessageUtils.generateSuccessMessage(await webWorker.getCryptoHelper()));
|
|
203
|
+
} catch (error) {
|
|
204
|
+
port.postMessage(MessageUtils.generateFailureMessage(error));
|
|
205
|
+
}
|
|
206
|
+
|
|
198
207
|
break;
|
|
199
208
|
case GET_ID_TOKEN:
|
|
200
209
|
try {
|