HomePhabricator
Diffusion Comm 43ddf8b93c57

[keyserver] factor out identity auth and saveIdentityInfo from…

Description

[keyserver] factor out identity auth and saveIdentityInfo from verifyUserLoggedIn

Summary:
we'll use the authAndSaveIdentityInfo function in keyserver.js where we currently call verifyUserLoggedIn. this is because we care about how the identity info was fetched. if it was fetched directly from the identity service, there's no need to call syncPlatformDetails. however, if it fetched from mariadb, we should attempt to sync.

Depends on D13665

Test Plan:
cleared access token from metadata table and logged out of keyserver. ran yarn dev and was logged back in. on subsequent yarn dev, auth metadata was fetched from mariadb

tested more in next diff

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13666

Details

Provenance
varunAuthored on Oct 9 2024, 11:58 AM
Reviewer
ashoat
Differential Revision
D13666: [keyserver] factor out identity auth and saveIdentityInfo from verifyUserLoggedIn
Parents
rCOMMc8a851f8be77: [keyserver] simplify verifyUserLoggedIn
Branches
Unknown
Tags
Unknown