How to use the hellojs/dist/hello.all.js.init 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 / index.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import hello from 'hellojs/dist/hello.all.js';

import registerServiceWorker from './registerServiceWorker';
import Login from './login/login';
import Home from './home/home';
import { Configs } from './configs';
import './index.css';

hello.init({
    msft: {
      id: Configs.appId,
      oauth: {
        version: 2,
        auth: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize'
      },
      scope_delim: ' ',
      form: false
    },
  },
  { redirect_uri: window.location.href }
);

ReactDOM.render(
  <BrowserRouter>
    <Switch>

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

62 / 100
Full package analysis