You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define your own options object and callback function, connect them to the component and get the result from Filestack:
91
88
@@ -116,14 +113,14 @@ You can pass a custom prop **link**.
116
113
/>
117
114
```
118
115
119
-
**Filestack-js client**
116
+
**filestack-js client**
120
117
121
118
You can also import the official client and decouple its React component ReactFilestack.
122
-
However, you will need to initialize it with the API key and optional security options.
119
+
However, you will need to initialize it with the API key and any [client options](https://filestack.github.io/filestack-js/interfaces/clientoptions.html) you need such as security, cname, and sessionCache.
Please also see the [Official JavaScript API reference](https://filestack.github.io/filestack-js)
148
145
149
146
> ### apikey
150
147
> **required**, string. An API key for Filestack.
@@ -162,9 +159,7 @@ To try different functions go to ``/examples/demo2`` and follow the same steps t
162
159
> **optional** function. Handle errors.
163
160
164
161
> ### options
165
-
> **optional** object. Detailed options to customize the mode behavior.
166
-
>
167
-
> See Javascript API from the[official documentation](https://filestack.com/docs).
162
+
> **optional** object. Detailed options to customize the specific mode behavior. For example, for `pick` mode the [following options](https://filestack.github.io/filestack-js/interfaces/pickeroptions.html) are supported.
168
163
169
164
> ### security
170
165
> **optional** object. If you have security enabled, you will need to initialize
@@ -179,6 +174,9 @@ the client with a valid Filestack policy and signature in order to perform the r
179
174
> ### cname
180
175
> **optional** Custom domain to use for all URLs. This requires the custom CNAME feature on your Filestack app.
181
176
177
+
> ### sessionCache
178
+
> **optional** If true then remember users (up to session expiry) when using the Filestack Cloud API. By default users need to authenticate on every pick.
179
+
182
180
## Versioning
183
181
Filestack React follows the [Semantic Versioning](http://semver.org/).
0 commit comments