zapier / zapier-platform

The SDK for you to build an integration on Zapier
https://platform.zapier.com
Other
344 stars 188 forks source link

PDE-5323 feat(cli): `invoke auth refresh` subcommand #878

Closed eliangcs closed 1 week ago

eliangcs commented 1 week ago

Changes:

The zapier invoke auth refresh command is available for session and oauth2 auth types.

For oauth2, it invokes authentication.oauth2Config.refreshAccessToken using the existing auth data in the .env file. It gets the new auth data and appends it to .env.

For session auth, it's the same except for it invokes authentication.sessionConfig.perform.