Page MenuHomePhabricator

[keyserver] factor out identity auth and saveIdentityInfo from verifyUserLoggedIn
ClosedPublic

Authored by varun on Oct 9 2024, 12:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 2:25 AM
Unknown Object (File)
Sat, Nov 9, 12:58 AM
Unknown Object (File)
Thu, Nov 7, 1:51 AM
Unknown Object (File)
Thu, Oct 31, 3:39 AM
Unknown Object (File)
Sat, Oct 26, 5:41 AM
Unknown Object (File)
Fri, Oct 25, 3:17 PM
Unknown Object (File)
Wed, Oct 23, 11:24 AM
Unknown Object (File)
Wed, Oct 23, 12:13 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage