digitopvn/diginext

[BUG] Expired access token & refresh token

Closed this issue · 0 comments

Describe the bug
CLI commands with expired access token & refresh token, asked to re-login but new access token still invalid.

[ERROR 2023-09-05 12:04:09] undefined - /auth/profile - API ERROR: AxiosError: Request failed with status code 502
[ERROR 2023-09-05 12:04:09] Authentication failed, invalid "access_token".
[ERROR 2023-09-05 12:04:09] Failed to login: User not found.
[ERROR 2023-09-05 12:04:09] TypeError: Cannot read properties of undefined (reading '_id')

To Reproduce
Steps to reproduce the behavior:

  1. Expired access token & refresh token
  2. dx up
  3. See error

Expected behavior
Should replace new access token & refresh token after re-login.

Workaround

  • dx logout
  • dx up
  • Enter new access token -> it works normally.