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

Remove V1.1 verify_credentials call after successful token retrieval #26

Merged
merged 2 commits into from
Jun 17, 2023

Conversation

na2hiro
Copy link
Owner

@na2hiro na2hiro commented Jun 16, 2023

Today, auth process goes like this

  1. /oauth/request_token (OAuth 1.0a): Retrieve request token
  2. User visits login page with the token, and sends back to callback page
  3. /oauth/access_token (OAuth 1.0a): Retrieve access tokens (as well as user id and screen name)
  4. /1.1/account/verify_credentials.json (Twitter API 1.1): Get user's full profile using the access tokens

I think the last step causes issue in near future due to the API deprecation / migration to the new subscription model. This is to remove the last call and return a simple profile which consists of only user id and screen name.

@na2hiro na2hiro mentioned this pull request Jun 16, 2023
@na2hiro na2hiro force-pushed the remove-deprecated-api-calls branch from fc5d161 to e2469f9 Compare June 17, 2023 07:17
@na2hiro na2hiro merged commit 44cb3df into main Jun 17, 2023
4 checks passed
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 this pull request may close these issues.

None yet

1 participant