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

Feature request: generation of refreshToken via wpcli #162

Open
gilzow opened this issue May 19, 2022 · 0 comments
Open

Feature request: generation of refreshToken via wpcli #162

gilzow opened this issue May 19, 2022 · 0 comments

Comments

@gilzow
Copy link

gilzow commented May 19, 2022

I have a system that brings up a clone of my WordPress instance (running wpgraphql and this plugin) in a dev environment, alongside a development instance of my nextjs app. Because of the timing, I need to generate the refreshToken before the wp server is available publicly (I need to write the token value to the .env file being injected into the nextjs container). It would be exceptionally handy to have a wp-cli command for generating the token so I could attach it to the pre-deploy hook.

I've written the code to do so as a separate plugin, but am wondering if you'd be interested in a PR to add it officially?

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