I am currently using the npm module jira-client to send API requests to my Jira system. I need a way to verify whether the user has valid credentials before proceeding. Depending on the validation result, I plan to either:
Inform the user that their username or token is not valid.
Allow the user to access project functionalities.
Is there a method available for specifically checking the validity of a username and token? While I can currently make calls and receive a special message response with invalid credentials, I want to confirm if there is a dedicated function for this verification process.