@asgardeo/auth-spa 0.3.11 → 0.3.12
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 +52 -0
- package/dist/asgardeo-spa.production.esm.js +50 -6
- package/dist/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/asgardeo-spa.production.js +52 -8
- 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 +55 -11
- package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.js +50 -6
- 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 +48 -2
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +64 -0
- 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 +4 -0
- package/dist/src/clients/main-thread-client.js.map +1 -1
- package/dist/src/helpers/authentication-helper.d.ts +1 -0
- package/dist/src/helpers/authentication-helper.d.ts.map +1 -1
- package/dist/src/helpers/authentication-helper.js +3 -0
- package/dist/src/helpers/authentication-helper.js.map +1 -1
- package/dist/src/models/client.d.ts +2 -1
- package/dist/src/models/client.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/client.ts +79 -0
- package/src/clients/main-thread-client.ts +6 -0
- package/src/helpers/authentication-helper.ts +4 -0
- package/src/models/client.ts +2 -0
package/README.md
CHANGED
|
@@ -662,6 +662,58 @@ auth.getAccessToken().then((token) => {
|
|
|
662
662
|
});
|
|
663
663
|
```
|
|
664
664
|
|
|
665
|
+
---
|
|
666
|
+
|
|
667
|
+
### getIDPAccessToken
|
|
668
|
+
|
|
669
|
+
```typescript
|
|
670
|
+
getIDPAccessToken(): Promise<string>;
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
#### Returns
|
|
674
|
+
|
|
675
|
+
A Promise that resolves with the idp access token.
|
|
676
|
+
|
|
677
|
+
#### Description
|
|
678
|
+
|
|
679
|
+
This returns a promise that resolves with the idp access token. The promise resolves successfully only if the storage type is set to a type other than `webWorker`. Otherwise an error is thrown.
|
|
680
|
+
|
|
681
|
+
#### Example
|
|
682
|
+
|
|
683
|
+
```TypeScript
|
|
684
|
+
auth.getIDPAccessToken().then((token) => {
|
|
685
|
+
// console.log(token);
|
|
686
|
+
}).error((error) => {
|
|
687
|
+
// console.error(error);
|
|
688
|
+
});
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
---
|
|
692
|
+
|
|
693
|
+
### getDataLayer
|
|
694
|
+
|
|
695
|
+
```typescript
|
|
696
|
+
getDataLayer(): Promise<DataLayer<MainThreadClientConfig>>;
|
|
697
|
+
```
|
|
698
|
+
|
|
699
|
+
#### Returns
|
|
700
|
+
|
|
701
|
+
A Promise that resolves with the data layer object.
|
|
702
|
+
|
|
703
|
+
#### Description
|
|
704
|
+
|
|
705
|
+
This returns a promise that resolves with the data layer object. The promise resolves successfully only if the storage type is set to a type other than `webWorker`. Otherwise an error is thrown.
|
|
706
|
+
|
|
707
|
+
#### Example
|
|
708
|
+
|
|
709
|
+
```TypeScript
|
|
710
|
+
auth.getDataLayer().then((dataLayer) => {
|
|
711
|
+
// console.log(dataLayer);
|
|
712
|
+
}).error((error) => {
|
|
713
|
+
// console.error(error);
|
|
714
|
+
});
|
|
715
|
+
```
|
|
716
|
+
|
|
665
717
|
### refreshAccessToken
|
|
666
718
|
|
|
667
719
|
```typescript
|