Passport Authentication Strategy for Clover's API using OAuth2
$ npm install passport-clover
/**
Strategyconstructor.- The Infusionsoft authentication strategy authenticates requests by delegating to
- Infusionsoft using the OAuth 2.0 protocol.
- Applications must supply a
verifycallback which accepts anaccessToken, refreshTokenand service-specificprofile, and then calls thedone- callback supplying a
user, which should be set tofalseif the - credentials are not valid. If an exception occured,
errshould be set. - Options:
-
client_idyour Clover application's client_id
-
redirect_uriURI to which Clover will redirect the user after granting authorization
- Examples:
-
passport.use(new CloverStrategy({ -
client_id: '1234567890123', -
redirect_uri: 'https://www.example.com/auth/Clover/callback' -
} -
)); - @param {Object} options
- @param {Function} verify
- @api public */