When doing some operations like eg:
you get:
Error: Your Xata session has expired. Please use `xata auth login` to log in again.
Once the stored token expires, CLI commands do not refresh it automatically.
The practical workaround is to log out and log in again. .... but this shouldn't be necessary.
Which is not ideal at all and a pain.
Related command:
This command appears to print the stored refresh token, not force refresh the current session token like its name would suggest.
Additional context:
The original observed failure was xata branch list, and it still failed when XATA_ORGANIZATION_ID and XATA_PROJECT_ID were set. The issue appears broader than branch list: the CLI needs either automatic token refresh and/or an explicit manual refresh command.
Version of cli used: 1.5.4
When doing some operations like eg:
you get:
Once the stored token expires, CLI commands do not refresh it automatically.
The practical workaround is to log out and log in again. .... but this shouldn't be necessary.
Which is not ideal at all and a pain.
Related command:
This command appears to print the stored refresh token, not force refresh the current session token like its name would suggest.
Additional context:
The original observed failure was
xata branch list, and it still failed whenXATA_ORGANIZATION_IDandXATA_PROJECT_IDwere set. The issue appears broader thanbranch list: the CLI needs either automatic token refresh and/or an explicit manual refresh command.Version of cli used: 1.5.4