@asgardeo/auth-spa 3.1.4 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +23 -0
  2. package/dist/asgardeo-spa.production.esm.js +33 -13
  3. package/dist/asgardeo-spa.production.esm.js.map +1 -1
  4. package/dist/asgardeo-spa.production.js +29 -9
  5. package/dist/asgardeo-spa.production.js.map +1 -1
  6. package/dist/asgardeo-spa.production.min.js +1 -1
  7. package/dist/asgardeo-spa.production.min.js.map +1 -1
  8. package/dist/polyfilled/asgardeo-spa.production.esm.js +31 -11
  9. package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
  10. package/dist/polyfilled/asgardeo-spa.production.js +47 -27
  11. package/dist/polyfilled/asgardeo-spa.production.js.map +1 -1
  12. package/dist/polyfilled/asgardeo-spa.production.min.js +1 -1
  13. package/dist/polyfilled/asgardeo-spa.production.min.js.map +1 -1
  14. package/dist/src/client.d.ts +24 -2
  15. package/dist/src/client.d.ts.map +1 -1
  16. package/dist/src/client.js +42 -4
  17. package/dist/src/client.js.map +1 -1
  18. package/dist/src/clients/main-thread-client.d.ts.map +1 -1
  19. package/dist/src/clients/main-thread-client.js +6 -1
  20. package/dist/src/clients/main-thread-client.js.map +1 -1
  21. package/dist/src/clients/web-worker-client.d.ts.map +1 -1
  22. package/dist/src/clients/web-worker-client.js +3 -1
  23. package/dist/src/clients/web-worker-client.js.map +1 -1
  24. package/dist/src/constants/storage.d.ts +0 -18
  25. package/dist/src/constants/storage.d.ts.map +1 -1
  26. package/dist/src/constants/storage.js +0 -19
  27. package/dist/src/constants/storage.js.map +1 -1
  28. package/dist/src/helpers/authentication-helper.d.ts.map +1 -1
  29. package/dist/src/helpers/authentication-helper.js +2 -1
  30. package/dist/src/helpers/authentication-helper.js.map +1 -1
  31. package/dist/src/helpers/session-management-helper.d.ts +1 -1
  32. package/dist/src/helpers/session-management-helper.d.ts.map +1 -1
  33. package/dist/src/helpers/session-management-helper.js +2 -1
  34. package/dist/src/helpers/session-management-helper.js.map +1 -1
  35. package/dist/src/models/client-config.d.ts +12 -3
  36. package/dist/src/models/client-config.d.ts.map +1 -1
  37. package/dist/src/models/client.d.ts +2 -0
  38. package/dist/src/models/client.d.ts.map +1 -1
  39. package/dist/src/models/storage.d.ts +39 -0
  40. package/dist/src/models/storage.d.ts.map +1 -0
  41. package/dist/src/models/storage.js +40 -0
  42. package/dist/src/models/storage.js.map +1 -0
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +1 -1
  45. package/src/client.ts +45 -4
  46. package/src/clients/main-thread-client.ts +9 -7
  47. package/src/clients/web-worker-client.ts +4 -3
  48. package/src/constants/storage.ts +0 -19
  49. package/src/helpers/authentication-helper.ts +2 -2
  50. package/src/helpers/session-management-helper.ts +2 -2
  51. package/src/models/client-config.ts +18 -3
  52. package/src/models/client.ts +2 -0
  53. package/src/models/storage.ts +39 -0
package/README.md CHANGED
@@ -30,6 +30,7 @@
30
30
  - [requestCustomGrant](#requestcustomgrant)
31
31
  - [revokeAccessToken](#revokeaccesstoken)
32
32
  - [getOIDCServiceEndpoints](#getoidcserviceendpoints)
33
+ - [getConfigData](#getConfigData)
33
34
  - [getDecodedIDToken](#getdecodedidtoken)
34
35
  - [getIDToken](#getidtoken)
35
36
  - [getCryptoHelper](#getcryptohelper)
@@ -626,6 +627,28 @@ auth.getOIDCServiceEndpoints().then((endpoints) => {
626
627
 
627
628
  ---
628
629
 
630
+ ### getConfigData
631
+
632
+ ```typescript
633
+ getConfigData(): AuthClientConfig<Config>
634
+ ```
635
+
636
+ #### Returns
637
+
638
+ An object containing the SDK configurations set in the storage.
639
+
640
+ ##### Description
641
+
642
+ This method returns the SDK configurations set in the storage of type `AuthClientConfig<Config>`.
643
+
644
+ #### Example
645
+
646
+ ```TypeScript
647
+ const config = auth.getConfigData();
648
+ ```
649
+
650
+ ---
651
+
629
652
  ### getDecodedIDToken
630
653
 
631
654
  ```typescript