How to use the intuit-oauth.scopes function in intuit-oauth

To help you get started, we’ve selected a few intuit-oauth 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 intuit / oauth-jsclient / sample / app.js View on Github external
app.get('/disconnect', function(req,res){

  console.log('The disconnect called ');
  const authUri = oauthClient.authorizeUri({scope:[OAuthClient.scopes.OpenId,OAuthClient.scopes.Email],state:'intuit-test'});
  res.redirect(authUri);

});
github intuit / oauth-jsclient / sample / app.js View on Github external
app.get('/authUri', urlencodedParser, function(req,res) {

    oauthClient = new OAuthClient({
        clientId: req.query.json.clientId,
        clientSecret: req.query.json.clientSecret,
        environment: req.query.json.environment,
        redirectUri: req.query.json.redirectUri
    });

    const authUri = oauthClient.authorizeUri({scope:[OAuthClient.scopes.Accounting],state:'intuit-test'});
    res.send(authUri);
});

intuit-oauth

Intuit Node.js client for OAuth2.0 and OpenIDConnect

Apache-2.0
Latest version published 4 months ago

Package Health Score

80 / 100
Full package analysis

Popular intuit-oauth functions