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

Add alternative to Optic mobile app for NPM publishing #491

Open
simoneb opened this issue Jan 6, 2025 · 1 comment
Open

Add alternative to Optic mobile app for NPM publishing #491

simoneb opened this issue Jan 6, 2025 · 1 comment

Comments

@simoneb
Copy link
Member

simoneb commented Jan 6, 2025

It would be good to have alternative ways to generate NPM OTPs in addition to the mobile app.

One way might be to use something like https://github.com/boasiHQ/interactive-inputs, which allows providing inputs during the execution of the workflow. We could set up a page that, when navigated to, accepts a OTP that the user will provide and that the action will use to publish to NPM.

I believe setting this up would be quite easy, it's mostly a matter of deciding how to design the API, which basically means modeling the action inputs, that the user will configure to decide whether to use the Optic app or the alternative way.

We could even consider making them work together at the same time, when configured. E.g. we will both try to send a push notification to the app, AND set up a page via the interactive inputs action. Whatever returns an OTP first, we'll use it!

@simoneb
Copy link
Member Author

simoneb commented Jan 6, 2025

@msgadi

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

No branches or pull requests

1 participant