Session expiration issue when using atlas auth login for manual monitoring.

I am working with a client who has a MongoDB Atlas project and has provided me access to their project. I am manually monitoring the database by connecting to their Atlas environment.

Initially, I used the command:
atlas auth login
It worked fine, and I was able to authenticate successfully. However, after some time, I encountered the following error:
session expired, try login, run atlas auth login

I would like to understand:

  1. What is the default session expiration time when using atlas auth login?
  2. Is there any way to increase this session duration?
  3. Are there alternative ways to prevent frequent session expirations while using the Atlas CLI for monitoring?

Looking forward to guidance on this.

1 Like