FLUID-6308: fluid-publish does not work with npm 2fa

Metadata

Source
FLUID-6308
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2018-07-23T10:06:36.907-0400
Updated
2024-07-22T10:35:09.322-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Build Scripts

Description

If two factor authentication (2fa) is enabled for npm. Fluid-publish is not able to properly run because there isn't a spot to set the one-time password. The one-time password can be set using the --otp=<code> flag for the npm call. This should be appropriately surfaced either by allowing the the code to be passed in as a parameter when fluid-publish is called, or pausing the execution of the script and requiring user intervention.

https://docs.npmjs.com/getting-started/using-two-factor-authentication