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

API request returns error #10

Open
benj02 opened this issue Dec 17, 2022 · 1 comment · May be fixed by #11
Open

API request returns error #10

benj02 opened this issue Dec 17, 2022 · 1 comment · May be fixed by #11

Comments

@benj02
Copy link

benj02 commented Dec 17, 2022

After logging in through OAuth, the request to https://api.twitter.com/2/users/me returns 403:

{
    "response": {
        "title": "Unsupported Authentication",
        "detail": "Authenticating with OAuth 2.0 Application-Only is forbidden for this endpoint.  Supported authentication types are [OAuth 1.0a User Context, OAuth 2.0 User Context].",
        "type": "https://api.twitter.com/2/problems/unsupported-authentication",
        "status": 403
    },
    "status": 403,
    "headers": {}
}

https://github.com/twitterdev/bookmarks-search/blob/main/src/App.js#L131

@benj02
Copy link
Author

benj02 commented Dec 17, 2022

Ah, my app needed to be set up as a "Native app / Public client" in the dev console! Now it works. Might be good to note in the README

@benj02 benj02 linked a pull request Dec 17, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant