If you have an AWS session token, you can use it to sign in to AWS.
To get your session token, open cmd in your computer and enter aws sts get-session-token –duration-seconds 129600. After a few seconds, you will be able to get your session token.
You can change the duration of the session token by changing the numerical value at the end of the command line. That’s it, you fetched your Session Token in just a few seconds. Now, you can use it to log in to AWS.