-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
PFTwitterUtils.logInWithBlock is not working for me. #1701
Comments
I also initialize PFTwitterUtils in AppDelegate.swift
But It is not working for me... |
Hi @yoshiboarder |
@andj207 Hi I solved this problem to set twitter's consumer_key and consumer_secret. Try this steps.
var api = new ParseServer({
|
You've saved my day. Thank you, @yoshiboarder |
Hi, I'm trying to login with twitter.
I hosted Parse Server at AWS.
`index.js
oauth: {
twitter: {
consumer_key: "MyTwitterKey", // REQUIRED
consumer_secret: "MyTwitterSecret" // REQUIRED
},
facebook: {
appIds: "Facebook Appids"
}
}`
`@IBAction func twitterButtonTapped(sender: AnyObject) {
Error message is here
{"code":1,"message":"Internal server error."} (Code: 1, Version: 1.13.0)
Here is my log..
parse-server-example running on port 8081. ESC[31merrorESC[39m: Uncaught internal server error. [TypeError: Cannot read pro perty 'consumer_key' of undefined] TypeError: Cannot read property 'consumer_key ' of undefined at new OAuth (/var/app/current/node_modules/parse-server/lib/authDataManager /OAuth1Client.js:7:30) at validateAuthData (/var/app/current/node_modules/parse-server/lib/authData Manager/twitter.js:9:16) at /var/app/current/node_modules/parse-server/lib/authDataManager/index.js:8 8:14 : at /var/app/current/node_modules/parse-server/lib/RestWrite.js:255:12 at Array.map (native) at RestWrite.handleAuthDataValidation (/var/app/current/node_modules/parse-server/lib/RestWrite.js:247:43) at RestWrite.handleAuthData (/var/app/current/node_modules/parse-server/lib/RestWrite.js:287:15) at RestWrite.validateAuthData (/var/app/current/node_modules/parse-server/lib/RestWrite.js:238:19) at /var/app/current/node_modules/parse-server/lib/RestWrite.js:83:18 at run (/var/app/current/node_modules/parse-server/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:89:22) ESC[31merrorESC[39m: Uncaught internal server error. [TypeError: Cannot read property 'consumer_key' of undefined] TypeError: Cannot read property 'consumer_key' of undefined at new OAuth (/var/app/current/node_modules/parse-server/lib/authDataManager/OAuth1Client.js:7:30) at validateAuthData (/var/app/current/node_modules/parse-server/lib/authDataManager/twitter.js:9:16) : at /var/app/current/node_modules/parse-server/lib/authDataManager/index.js:88:14 at /var/app/current/node_modules/parse-server/lib/RestWrite.js:255:12 at Array.map (native) at RestWrite.handleAuthDataValidation (/var/app/current/node_modules/parse-server/lib/RestWrite.js:247:43) at RestWrite.handleAuthData (/var/app/current/node_modules/parse-server/lib/RestWrite.js:287:15) at RestWrite.validateAuthData (/var/app/current/node_modules/parse-server/lib/RestWrite.js:238:19) at /var/app/current/node_modules/parse-server/lib/RestWrite.js:83:18 at run (/var/app/current/node_modules/parse-server/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:89:22)
Why My Pase Server can't read consumer_key?
I'm using aws beanstalk. After edit my index.js I always uploaded via eb deploy.
Could you helping me?
The text was updated successfully, but these errors were encountered: