This PR implements a new loginGetCloudCredentials function, aiming to incorporate login and register into all cloud commands. This way, users no longer need to type separate npx dbos-cloud login or npx dbos-cloud register.
This new function:
First checks if the user credentials exist and not expired.
If so, returns the credentials.
If not, try to login the user through Auth0.
If the user is not registered in DBOS Cloud, prompts to register the user.
This PR implements a new
loginGetCloudCredentials
function, aiming to incorporate login and register into all cloud commands. This way, users no longer need to type separatenpx dbos-cloud login
ornpx dbos-cloud register
.This new function: