-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Can't publish package with NPM account that has enabled 2FA #4904
Comments
I put these in the Yarn Discord back when the feature launched, but I figured it wouldn't hurt to put this info somewhere more permanent:
If an implementer has any questions, I'm easy to get a hold of, easiest is probably Discord where I'm iarna#2841 or DM me on Twitter. |
This issue being open implies that yarn cannot be used if 2FA is enabled in my npm account? If so, is there a workaround? Thanks. |
Is anyone working on this? I'm interested in taking it on. |
Hey @iansu, I started but not much progress yet. You can pick it up 👍 |
Alright, I'll start working on it. Do we just want to enable publishing with 2FA enabled (add support for entering 2FA code in login) or also add full profile support (a |
I think it's ok to do both but better to do it in sperate PRs. |
@itaysabato Workarounds are to either remove 2FA from your account or use |
So keen for this so I can stop using |
Due to https://status.npmjs.org/incidents/dn7c1fgrr7ng I rotated my It would certainly be nice not to have to compromise my security to keep using |
Still waiting on yarn to support 2FA: yarnpkg/yarn#4904 , so this change switches to npm in the meantime.
please add this? I am using |
* feat(auth): Support two factor authentication for npm accounts Fix #4904 * Add basic tests * Rename OneTimePasswordRequiredError to OneTimePasswordError Cause it's also thrown when one-time password is invalid. * Remove misleading config parameter from getOneTimePassword * Don't reimplement setOtp in npm-registry.js tests * Update CHANGELOG.md
I have enabled 2FA on my NPM account, I think that Yarn won't prompt for OTP code, so I can't publish my package to NPM using Yarn.
Command:
Log file:
The text was updated successfully, but these errors were encountered: