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
chore: upgrade dependencies and migrate example to vite (#68)
* replace create-react-app example with vite
* upgrade root repo eslint
* wip: fix vulns
* wip: fix vulns, adjust eslint to ignore website gen
* patch most others left
* add resolutions for ws and cookie
* fix ci
* give example dev server static port
* remove explicit package resolutions
by upgrading the intermediate `socket.io` and `engine.io` deps.
---------
Co-authored-by: Jonathan Reyes <[email protected]>
@@ -282,26 +286,26 @@ export default function App() {
282
286
Alternatively, you can also choose to go with the lazy variants of these hooks (`useLazyPendingCursorOperation` and `useLazyPendingIDSpecificOperation`), in order to launch queries on the data store as a response to a user event:
For Online apps, the `useOnlineIdentity` hook returns the following set of properties that can be used to manage authentication for your app:
357
365
358
-
*`create`: Creates an `onlineWithAuthentication` object preconfigured such that the hook can manage the authentication flow using the exposed `authenticate` function.
359
-
*`getAuthenticationRequired`: Is a function that takes in the app path for which to check the authentication required state, and will return true if your Ditto instance is requiring the current user to authenticate with the app. You can configure authentication webhooks on the [Portal](http://portal.ditto.live), from your app settings area, in order to provide your own set of validation services for your app.
360
-
*`getTokenExpiresInSeconds`: Is a function that takes in the app path for which to check the token expiry second, and returns the number of seconds in which your current token expires if this has been reported by the Ditto SDK.
366
+
-`create`: Creates an `onlineWithAuthentication` object preconfigured such that the hook can manage the authentication flow using the exposed `authenticate` function.
367
+
-`getAuthenticationRequired`: Is a function that takes in the app path for which to check the authentication required state, and will return true if your Ditto instance is requiring the current user to authenticate with the app. You can configure authentication webhooks on the [Portal](http://portal.ditto.live), from your app settings area, in order to provide your own set of validation services for your app.
368
+
-`getTokenExpiresInSeconds`: Is a function that takes in the app path for which to check the token expiry second, and returns the number of seconds in which your current token expires if this has been reported by the Ditto SDK.
0 commit comments