Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passport opskin Throw an Error #10

Open
phpnodeais opened this issue Jun 20, 2019 · 2 comments
Open

Passport opskin Throw an Error #10

phpnodeais opened this issue Jun 20, 2019 · 2 comments

Comments

@phpnodeais
Copy link

phpnodeais commented Jun 20, 2019

I implemented following code for passport-opskins.
Code reference url : https://www.npmjs.com/package/passport-opskins
I attached screenshot for error

image_3r

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)

@gustavochavarria
Copy link
Contributor

gustavochavarria commented Jun 20, 2019

Please check out my PR: #9

You can use my fork: https://github.com/gustavochavarria/passport-opskins

@phpnodeais
Copy link
Author

@gustavochavarria Thanks for your reply. It working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants