API Token expires without any notification

Hi team,

At times, the API token expires without giving any notification. It has been at two scenarios:
1.) While trying forge login command in CLI: it gives cannot login invalid credentials, then I went to check my token it was revoked automatically. I created new and tried forge login with new token it worked.

2.) While developing forge application: we were using the rest api and while using that we were passing email id and token as basic auth but I was getting error as “Uncaught (in promise) Error: There was an error invoking the function - Unexpected token < in JSON at position 0”

I am aware that the API token has no expiration until we revoke, but I am unable to get why my token expires. Even if it expires it does not give any email notification.
Could you please guide us on this.