let strat = new opStrategy({
name: 'passport-opskins-example',
returnURL: `http://localhost:${config.port}/auth/opskins/return`,
apiKey: config.apiKey, //here my api key setted
scopes: 'identity_basic', // Space-separated list of identities
mobile: true, // Remove OPSkins NavBar
permanent: true, // Maintain permanent access to the account
debug: false // Displays error messages in the browser
}, (user, done) => {
return done(null, user);
});
also I got following error
/opt/lampp/htdocs/passport-opskins/index.js:145
throw new Error(body.message);
^
Error
at Request.request.post [as _callback] (/opt/lampp/htdocs/passport-opskins/index.js:145:19)
at Request.self.callback (/opt/lampp/htdocs/passport-opskins/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/opt/lampp/htdocs/passport-opskins/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/opt/lampp/htdocs/passport-opskins/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
I implemented following code for passport-opskins. Code reference url : https://www.npmjs.com/package/passport-opskins I attached screenshot for error
also I got following error