[Keyserver] Refactor getOneTimeKeyValues
Summary:
This is useful for more than the current login workflow,
refactor to separate file
In support of https://linear.app/comm/issue/ENG-4602
Depends on D8750
Test Plan:
# Start localstack and rabbitmq comm-dev services start (cd services/identity && cargo run -- server) (cd services/tunnelbroker && cargo run) # If keyserver has already logged in, reset user_id entry in metadata table # This will force keyserver to re-login cd keyserver yarn dev # Assert the user is populated in MariaDB
Reviewers: marcin, jon
Reviewed By: marcin
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D8751