piral-oauth2 0.14.8 → 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 +6 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -77,15 +77,19 @@ import { setupOAuth2Client } from 'piral-oauth2';
|
|
|
77
77
|
|
|
78
78
|
export const client = setupOAuth2Client({ ... });
|
|
79
79
|
|
|
80
|
-
// app.
|
|
80
|
+
// app.tsx
|
|
81
|
+
import * as React from 'react';
|
|
81
82
|
import { createOAuth2Api } from 'piral-oauth2';
|
|
83
|
+
import { createInstance } from 'piral-core';
|
|
82
84
|
import { client } from './oauth2';
|
|
85
|
+
import { render } from 'react-dom';
|
|
83
86
|
|
|
84
87
|
export function render() {
|
|
85
|
-
|
|
88
|
+
const instance = createInstance({
|
|
86
89
|
// ...
|
|
87
90
|
plugins: [createOAuth2Api(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-oauth2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-alpha.3537",
|
|
4
4
|
"description": "Plugin to integrate OAuth 2.0 authentication in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"client-oauth2": "^4.2.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"piral-core": "
|
|
49
|
+
"piral-core": "0.15.0-alpha.3537"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"piral-core": "0.14.x"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "5da9d7fe4793668e956e96470aef95b41f2805d7"
|
|
55
55
|
}
|