-
Notifications
You must be signed in to change notification settings - Fork 105
Authorize Error: unconfirmed callback (Twitter) #51
Comments
That error message is pretty rubbish. If you log out My guess is that the larger app is missing some of the deep link setup stuff, have another look at the install steps https://github.com/adamjmcgrath/react-native-simple-auth#install |
Thanks! Got everything sorted. |
No worries. It looks like you would add it to the verify credentials url: https://github.com/adamjmcgrath/react-native-simple-auth/blob/master/lib/providers/twitter.js#L26 |
Yeah, I tried adding it to the verify credentials url first, as well as passing it in with the params object, but the attempt is always met with a {code: 32, message: "Could not authenticate you."} error. I suspect the include_email parameter needs to be added during the signature generation, but I can't quite figure it out. Thanks again. |
Ah yep, you'd need to pass it in to the signature generator as well: const VERIFY_CREDENTIALS = 'https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true';
export const identify = curry(
(request, { appId, appSecret, oauth_token, oauth_token_secret }) => pipeP(
partial(request, [VERIFY_CREDENTIALS, {
headers: getHeaders(VERIFY_CREDENTIALS, { include_email: true }, {}, appId, appSecret, 'GET', oauth_token, oauth_token_secret), // eslint-disable-line max-len
}, {}]),
invoker(0, 'json'),
set(lensProp('user'), __, {}),
set(lensProp('credentials'), { oauth_token, oauth_token_secret }),
)(),
); These custom provider options should be added to the library really - see my comment about it here: #53 (comment) |
Yeah, I'm not sure actually works, passing in the parameter that way. I still receive a could not "Could not authenticate you." error. If I make any progress, I'll make a pr. |
I am in the same boat as @aprout. Since my backend database uses the email address as their login credentials, being unable to retrieve that from Twitter renders twitter login completely useless, as I cannot tie it to an existing account. I tried @adamjmcgrath's suggestion above, and like @aprout, I got the "Could not authenticate you" error, even with the parameter added to the signature as both a string or boolean true. I am, unfortunately, at a loss at how to proceed here. Give up? Any ideas would be very welcome. |
@atarsha @aprout I solved the issue, pass const VERIFY_CREDENTIALS_BASE = 'https://api.twitter.com/1.1/account/verify_credentials.json';
const VERIFY_CREDENTIALS = 'https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true';
export const identify = curry(
(request, { appId, appSecret, oauth_token, oauth_token_secret }) => pipeP(
partial(request, [VERIFY_CREDENTIALS, {
headers: getHeaders(VERIFY_CREDENTIALS_BASE, { include_email: true }, {}, appId, appSecret, 'GET', oauth_token, oauth_token_secret), // eslint-disable-line max-len
}, {}]),
invoker(0, 'json'),
set(lensProp('user'), __, {}),
set(lensProp('credentials'), { oauth_token, oauth_token_secret }),
)(),
); |
Hello I have a problem for twitter login. The error is
Any idea for this ? |
In my particular case, I didn't have the scheme in the Twitter dev console set correctly. Attempting to add "appname://authorize" as a callback URL failed, but adding just "appname://" worked for me. Make sure you then set your callback on the React Native code to "appname://authorize" though. |
…t when I get a chance, but right now I need this quick.
good catch @realmadrid2727 ! it worked for me. |
Using twitter auth, I keep receiving an 'authorize error: unconfirmed callback' error. I'm likely doing something incorrectly with the app credentials or the url scheme, but I can't figure out what it is. Do you have any examples containing the specifics of the app registration details on twitter and with the corresponding callback used?
I'm able to get google auth working using the code from the example, but when I attempt incorporate it into my larger app, the promise never resolves when returning to my app from the google auth page, thus no data. Any ideas?
Edit: Experiencing the same problem with facebook as google .
Thanks!
The text was updated successfully, but these errors were encountered: