Depends if you’re uploading from the WordPress back end admin console, in which case you should already be logged in. Or, if you are uploading the files via FTP in which case you would need the credentials provided by your host and not WP.
I’ve just started using WP myself and have been uploading themes and plugins through the WP backend. They make it very simple.
Thank you WordPress developers and community.