piral-adal 0.14.9 → 0.15.0-alpha.3537
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 +7 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -71,21 +71,25 @@ The separation into `setupAdalClient` and `createAdalApi` was done to simplify t
|
|
|
71
71
|
|
|
72
72
|
Normally, you would want to have different modules here. As an example consider the following code:
|
|
73
73
|
|
|
74
|
-
```
|
|
74
|
+
```jsx
|
|
75
75
|
// module adal.ts
|
|
76
76
|
import { setupAdalClient } from 'piral-adal';
|
|
77
77
|
|
|
78
78
|
export const client = setupAdalClient({ ... });
|
|
79
79
|
|
|
80
|
-
// app.
|
|
80
|
+
// app.tsx
|
|
81
|
+
import * as React from 'react';
|
|
81
82
|
import { createAdalApi } from 'piral-adal';
|
|
83
|
+
import { createInstance } from 'piral-core';
|
|
82
84
|
import { client } from './adal';
|
|
85
|
+
import { render } from 'react-dom';
|
|
83
86
|
|
|
84
87
|
export function render() {
|
|
85
|
-
|
|
88
|
+
const instance = createInstance({
|
|
86
89
|
// ...
|
|
87
90
|
plugins: [createAdalApi(client)],
|
|
88
91
|
});
|
|
92
|
+
render(<Piral instance={instance} />, document.querySelector('#app'));
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
// index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-adal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-alpha.3537",
|
|
4
4
|
"description": "Plugin to integrate AAD authentication in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"msal": "^1.1.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"piral-core": "
|
|
50
|
+
"piral-core": "0.15.0-alpha.3537"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"piral-core": "0.14.x"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "5da9d7fe4793668e956e96470aef95b41f2805d7"
|
|
56
56
|
}
|