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

Does this library still work? Invalid verification code format #5

Open
ablankenship10 opened this issue Jul 7, 2017 · 2 comments
Open

Comments

@ablankenship10
Copy link

Attempting to get the profile of a user with the token returned from https://github.com/facebook/react-native-fbsdk

payload:

{
    code: facebook_token,
    client_id: facebookAppId,
    client_secret: facebookAppSecret,
    redirect_uri: 'http://SERVER_IP/api/auth/' // tried with and without trailing /
}

Token (modified some characters)

qAOCDyRas85EBAEP7ZC2YHZBNL7a4PGz2LAyk72J4TAbIjhIVVeBXgOszrCQYJ3t0FQe62ZCosJZBcw6fLTGxVX82XcYmMNThzpQJffYKVA1TRojwLZB10mBaJTv2fr1D4bOje4JQue2JDISdHqfoty627YKLTY7OkMqukuiE28jkkZCptD4ZDOEIDK9UlbbNFP5r8HMCPzjs57vc2ZBCp7RVjBo93ZBtpb0UgXZA4vgR6Bb9vwZDZo

I receive this error

{
    "error": "Invalid verification code format."
}

I do not notice any attempt to connect to the (public accessible) redirect_uri

@matthewmueller
Copy link
Member

good question, i haven't tried it in awhile. it should work though assuming they haven't changed their oauth2 flow though.

@ablankenship10
Copy link
Author

Hmm, gotcha, but my config is correct and the token Im sending is the expected value to send as code? I'll try another package but was hoping to avoid passport. Thanks

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