twitter-api-typescript-sdk
twitter-api-typescript-sdk copied to clipboard
Update OAuth2 URL to X
This should solve security issue when logging in with their X account.
Issue: Even when user is logged out from Twitter when Oauth 2 Authorization URL is used the session still retains and work. In effect, it bypasses the security of being logged out.
Problem
- Say user logged into X and then "Sign in with X" on a Third Party App.
- And then they Log out their X account on
x.com - On the Third Party App, they try to
Sign in with Xusing the OAuth2 Authorization Code Flow.
Result:
- Everything still works as if their session wasn't logged on step number 2.
- Third Party app will still be able to get access token
Solution
Change the authorization url to x.com so that when user logged out.
The session in their browser is also revoked/invalidated.
Result
Whenever user logged out and then they try to Sign in with X on a Third Party app.
They will have to sign in to X again.
@refarer Good morning!
I was wondering if I could get a review on PR.