@opensecret/react 0.3.3 → 0.3.4
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 -2
- package/dist/index.d.ts +1 -1
- package/dist/opensecret-react.es.js +414 -415
- package/dist/opensecret-react.umd.js +14 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This is a React SDK for the [OpenSecret](https://opensecret.cloud) platform.
|
|
4
4
|
|
|
5
|
+
🚧 We're currently in preview mode, please contact us at team@opensecret.cloud for the preview URL and getting started info 🚧
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -17,7 +19,7 @@ import { OpenSecretProvider } from "@opensecret/react";
|
|
|
17
19
|
|
|
18
20
|
function App() {
|
|
19
21
|
return (
|
|
20
|
-
<OpenSecretProvider apiUrl="
|
|
22
|
+
<OpenSecretProvider apiUrl="{URL}">
|
|
21
23
|
<App />
|
|
22
24
|
</OpenSecretProvider>
|
|
23
25
|
);
|
|
@@ -53,7 +55,7 @@ function App() {
|
|
|
53
55
|
The `OpenSecretProvider` component is the main entry point for the SDK. It requires a single prop, `apiUrl`, which should be set to the URL of your OpenSecret backend.
|
|
54
56
|
|
|
55
57
|
```tsx
|
|
56
|
-
<OpenSecretProvider apiUrl="
|
|
58
|
+
<OpenSecretProvider apiUrl="{URL}">
|
|
57
59
|
<App />
|
|
58
60
|
</OpenSecretProvider>
|
|
59
61
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ export declare function generateSecureSecret(): string;
|
|
|
158
158
|
|
|
159
159
|
declare function generateThirdPartyToken(audience: string): Promise<ThirdPartyTokenResponse>;
|
|
160
160
|
|
|
161
|
-
declare function getAttestation(forceRefresh?: boolean): Promise<Attestation>;
|
|
161
|
+
declare function getAttestation(forceRefresh?: boolean, apiUrl?: string): Promise<Attestation>;
|
|
162
162
|
|
|
163
163
|
export declare type GithubAuthResponse = {
|
|
164
164
|
auth_url: string;
|