[keyserver] Extract uploadOneTimeKeys to a separate function
Summary: Needed for ENG-6544 to handle invalid auth from one place
Test Plan: Flow, ran keyserver locally
Reviewers: varun, kamil
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D14026