How to use the hellojs/dist/hello.all.js 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.

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

github Hongbo-Miao / microsoft-graph-react / src / home / home.js View on Github external
onLogout() {
    hello('msft').logout().then(
      () => this.props.history.push('/'),
      e => console.error(e.error.message)
    );
  }
github microsoftgraph / angular4-connect-sample / src / app / shared / http.service.ts View on Github external
getAccessToken() {
    const msft = hello('msft').getAuthResponse();
    const accessToken = msft.access_token;
    return accessToken;
  }
github Hongbo-Miao / microsoft-graph-react / src / home / home.js View on Github external
constructor(props) {
    super(props);

    const msft = hello('msft').getAuthResponse();

    this.state = {
      contacts: [],
      token: msft.access_token
    };

    this.onWriteToExcel = this.onWriteToExcel.bind(this);
    this.onLogout = this.onLogout.bind(this);
  }

hellojs

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

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis