@asgardeo/auth-spa 0.3.12 → 0.4.1
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 +31 -0
- package/dist/asgardeo-spa.production.esm.js +46 -10
- package/dist/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/asgardeo-spa.production.js +45 -9
- 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 +75 -39
- package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.js +75 -39
- 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 +19 -5
- 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 -5
- package/dist/src/helpers/authentication-helper.d.ts.map +1 -1
- package/dist/src/helpers/authentication-helper.js +16 -20
- package/dist/src/helpers/authentication-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 +2 -0
- 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 +23 -5
- 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 +28 -5
- package/src/clients/web-worker-client.ts +33 -0
- package/src/constants/messages-types.ts +2 -0
- package/src/helpers/authentication-helper.ts +13 -34
- package/src/http-client/clients/axios-http-client.ts +2 -0
- package/src/models/client.ts +4 -0
- package/src/models/http-client.ts +2 -0
- 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 +33 -8
- package/src/worker/worker-receiver.ts +9 -0
package/README.md
CHANGED
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
- [getOIDCServiceEndpoints](#getOIDCServiceEndpoints)
|
|
32
32
|
- [getDecodedIDToken](#getdecodedidtoken)
|
|
33
33
|
- [getIDToken](#getIDToken)
|
|
34
|
+
- [getCryptoHelper](#getCryptoHelper)
|
|
34
35
|
- [getAccessToken](#getaccesstoken)
|
|
36
|
+
- [getIDPAccessToken](#getIDPAccessToken)
|
|
35
37
|
- [refreshAccessToken](#refreshAccessToken)
|
|
36
38
|
- [on](#on)
|
|
37
39
|
- [isAuthenticated](#isAuthenticated)
|
|
@@ -714,6 +716,35 @@ auth.getDataLayer().then((dataLayer) => {
|
|
|
714
716
|
});
|
|
715
717
|
```
|
|
716
718
|
|
|
719
|
+
---
|
|
720
|
+
|
|
721
|
+
### getCryptoHelper
|
|
722
|
+
|
|
723
|
+
```TypeScript
|
|
724
|
+
getCryptoHelper(): Promise<CryptoHelper>
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
#### Returns
|
|
728
|
+
|
|
729
|
+
cryptoHelper : [`CryptoHelper`](#CryptoUtils)
|
|
730
|
+
|
|
731
|
+
`CryptoHelper` provides support for performing a cryptographic operation such as producing a PKCE code and verifying ID tokens.
|
|
732
|
+
|
|
733
|
+
#### Description
|
|
734
|
+
|
|
735
|
+
This method returns the `CryptoHelper` object used by the SDK to perform cryptographic operations.
|
|
736
|
+
|
|
737
|
+
#### Example
|
|
738
|
+
|
|
739
|
+
```TypeScript
|
|
740
|
+
auth.getCryptoHelper().then((cryptoHelper) => {
|
|
741
|
+
// console.log(cryptoHelper);
|
|
742
|
+
}).error((error) => {
|
|
743
|
+
// console.error(error);
|
|
744
|
+
});
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
---
|
|
717
748
|
### refreshAccessToken
|
|
718
749
|
|
|
719
750
|
```typescript
|