react-covideo-embed 0.1.10 → 0.1.13
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
CHANGED
|
@@ -82,6 +82,13 @@ Explore the capabilities of react-covideo-embed through our [Demo Project](https
|
|
|
82
82
|
- `CTA`
|
|
83
83
|
- `reactions`
|
|
84
84
|
|
|
85
|
+
## APIs/Functions
|
|
86
|
+
|
|
87
|
+
### `logoutCovideo()`
|
|
88
|
+
|
|
89
|
+
- **Type**: `function`
|
|
90
|
+
- **Description**: Log out from Covideo and clear local storage entries associated with Covideo. To reflect the logout status, the CovideoEmbed component should be re-rendered after this function is called.
|
|
91
|
+
|
|
85
92
|
## Author
|
|
86
93
|
|
|
87
94
|
This package is maintained by Covideo.
|
package/build/index.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ export type ShareData = {
|
|
|
27
27
|
thumbnail: string;
|
|
28
28
|
html: string;
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Logout from Covideo.
|
|
32
|
+
* If called, removes the auth token and other Covideo data from local storage.
|
|
33
|
+
*/
|
|
34
|
+
export declare function logoutCovideo(): void;
|
|
30
35
|
export type CovideoEmbedProps = {
|
|
31
36
|
/**
|
|
32
37
|
* JWT token from Covideo.
|