@connect-xyz/auth-react 0.15.0 → 0.16.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.
- package/README.md +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ function App() {
|
|
|
35
35
|
<Auth
|
|
36
36
|
jwt={jwt}
|
|
37
37
|
env="production" // or "sandbox" for testing
|
|
38
|
+
theme="auto" // 'auto' (default), 'light', or 'dark'
|
|
38
39
|
/>
|
|
39
40
|
);
|
|
40
41
|
}
|
|
@@ -68,6 +69,7 @@ function App() {
|
|
|
68
69
|
<Auth
|
|
69
70
|
jwt={jwt}
|
|
70
71
|
env="production"
|
|
72
|
+
theme="auto" // 'auto' (default), 'light', or 'dark'
|
|
71
73
|
onError={handleError}
|
|
72
74
|
onClose={handleClose}
|
|
73
75
|
onDeposit={handleDeposit}
|
|
@@ -101,6 +103,7 @@ function App() {
|
|
|
101
103
|
<Auth
|
|
102
104
|
jwt={jwt}
|
|
103
105
|
env={environment}
|
|
106
|
+
theme="auto" // 'auto' (default), 'light', or 'dark'
|
|
104
107
|
onError={({ errorCode, reason }) => {
|
|
105
108
|
console.log('Error:', errorCode, 'Reason:', reason);
|
|
106
109
|
}}
|
|
@@ -129,6 +132,7 @@ export default App;
|
|
|
129
132
|
| ----------- | --------------------------------- | -------- | -------------- | ---------------------------------------------- |
|
|
130
133
|
| `jwt` | `string` | Yes | - | JWT token for authentication with Connect Auth |
|
|
131
134
|
| `env` | `"production" \| "sandbox"` | No | `"production"` | Target environment |
|
|
135
|
+
| `theme` | `"auto" \| "light" \| "dark"` | No | `"auto"` | Theme mode for the interface |
|
|
132
136
|
| `onError` | `({ errorCode, reason }) => void` | No | - | Callback for error events |
|
|
133
137
|
| `onClose` | `() => void` | No | - | Callback when the widget is closed |
|
|
134
138
|
| `onDeposit` | `({ data }) => void` | No | - | Callback for deposit received |
|