xdevplatform / bookmarks-search

Search your Twitter Bookmarks
https://bookmarksearch.glitch.me/
Apache License 2.0
55 stars 12 forks source link

API request returns error #10

Open benj02 opened 1 year ago

benj02 commented 1 year ago

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 commented 1 year ago

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