Still can access account from device after changing account password #149787
Replies: 2 comments
-
If you authenticated using a Personal Access Token, then you can delete that token from https://github.com/settings/tokens (or https://github.com/settings/personal-access-tokens if you used a fine-grained token). |
Beta Was this translation helpful? Give feedback.
-
When you change your GitHub account password, existing authentication tokens or cached credentials (such as those stored by Git or VSCode) might still allow access to your repositories. This happens because GitHub uses personal access tokens (PATs) or cached credentials for authentication instead of the password for API operations like push/pull. what you can do to secure your account and repositories fully: 1. Revoke Cached Credentials
2. Revoke Access TokensChanging your password doesn’t automatically revoke access tokens.
3. Enable Two-Factor Authentication (2FA)Add an additional layer of security by enabling 2FA for your GitHub account:
4. Logout from All SessionsTo ensure no device retains access:
5. Audit OAuth App and SSH Key AccessCheck for any OAuth apps or SSH keys that might still have access:
6. Educate Yourself on VSCode Git Authentication
7. Disable GitHub Username and Password for AuthenticationGitHub has deprecated password authentication for Git operations. Use PATs or SSH keys instead for secure access. 8. Bonus – Use Private Browsing and Device Access Controls
By following these steps, you’ll ensure your GitHub account and repositories remain secure, even if someone else has access to your device. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I work using windows, by using the vscode version control plugin, I can connect to github, by logging in first, in this case I log in using email and password.
scenario:
I think, what if someone uses my device, and I forget to delete the github credential on my device. Then that person can manipulate my repo, even though the repo is private.
I tried to change my password on my github account via the website. But I'm confused, why after I changed my account password via the website, I can still push/pull from my device.
is there another way to secure my account/repo for that scenario?
thank you.
Beta Was this translation helpful? Give feedback.
All reactions