MCPcopy Create free account
hub / github.com/CommE2E/comm / verifyUserLoggedIn

Function verifyUserLoggedIn

keyserver/src/user/login.js:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58async function verifyUserLoggedIn(): Promise<IdentityInfo> {
59 const result = await fetchIdentityInfo();
60
61 if (result) {
62 return result;
63 }
64
65 return authAndSaveIdentityInfo();
66}
67
68async function authAndSaveIdentityInfo(): Promise<IdentityInfo> {
69 const userInfo = await getUserCredentials();

Callers 9

findUserIdentitiesFunction · 0.90
privilegedDeleteUsersFunction · 0.90
publishPrekeysFunction · 0.90
uploadNewOneTimeKeysFunction · 0.90
versionResponderFunction · 0.90
createRequestHeadersFunction · 0.90

Calls 2

fetchIdentityInfoFunction · 0.90
authAndSaveIdentityInfoFunction · 0.85

Tested by

no test coverage detected