How to use the cozy-interapp.Intents function in cozy-interapp

To help you get started, we’ve selected a few cozy-interapp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy.github.io / en / cozy-banks / src / ducks / client / index.js View on Github external
export const getClient = () => {
  if (client) {
    return client
  }

  client = lib.getClient()

  const intents = new Intents({ client })
  client.intents = intents

  client.registerPlugin(RealtimePlugin)

  // Used as a hack to prevent circular dependency.
  // Some selectors need to access cozyClient to correctly hydrate.
  // That should change, hydratation should be possible to do only
  // with the store
  // See selectors/index.js
  window.cozyClient = client

  return client
}
github cozy / cozy.github.io / en / cozy-banks / src / components / useRedirectionURL.js View on Github external
const fetch = async () => {
        const intents = new Intents({ client: client })
        const redirectionURL = await intents.getRedirectionURL(doctype, options)
        setRedirectionURL(redirectionURL)
      }
      fetch()
github cozy / cozy.github.io / en / cozy-banks / src / ducks / demo / AugmentedModal.jsx View on Github external
constructor(props, context) {
    super(props, context)
    this.intents = new Intents({ client: props.client })
  }

cozy-interapp

Cozy Interapp allows applications to interact with each other and not have access to all data

MIT
Latest version published 15 days ago

Package Health Score

73 / 100
Full package analysis

Popular cozy-interapp functions

Similar packages