How to use the hellojs.bind function in hellojs

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

github Syncano / website / src / services / auth.service.js View on Github external
initHello () {
    const credentials = {
      facebook: process.env.HELLO_FACEBOOK,
      google: process.env.HELLO_GOOGLE,
      github: process.env.HELLO_GITHUB
    }

    const options = {
      scope: 'email',
      redirect_uri: process.env.HELLO_REDIRECT_URI
    }

    hello.init(credentials, options)

    this.hello = hello.bind(hello)
  }
}

hellojs

A clientside Javascript library for standardizing requests to OAuth2 web services (and OAuth1 - with a shim)

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis

Similar packages