How to use the hellojs.on 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 ACloudGuru-Resources / Course-The_Complete_Serverless_Course / section-5 / basic-website-azure / frontend / src / App.js View on Github external
return true
        },
        form: false
      }
    });

    // Configure application details
    hello.init({ azureAD: backendClientID }, {
      redirect_uri: redirectUrl,
      scope: `openid https://${tenantName}.onmicrosoft.com/${backendClientApiID}/${backendClientScopeName}`,
      response_type: 'token id_token',
      resource: `${backendClientApiID}`,
      display: 'page',
    });

    hello.on('auth.login', (auth) => {
      this.handleAuthLogin(auth);
    });

  }
github SharePoint / sp-dev-fx-webparts / samples / angular-msgraph / src / webparts / msGraph / app / aad.js View on Github external
hello.init({

  aad: {
    name: 'Azure Active Directory',
    oauth: {
      version: 2,
      auth: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
      grant: 'https://login.microsoftonline.com/common/oauth2/v2.0/token'
    },
    scope_delim: ' ',
    form: false
  }
});

hello.on('auth.login', function (auth){
  localStorage.auth = angular.toJson(auth.authResponse);
});

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