(identityInfo: IdentityInfo)
| 85 | } |
| 86 | |
| 87 | async function syncPlatformDetails(identityInfo: IdentityInfo): Promise<void> { |
| 88 | const [rustAPI, deviceID] = await Promise.all([ |
| 89 | getRustAPI(), |
| 90 | getContentSigningKey(), |
| 91 | ]); |
| 92 | return authVerifiedEndpoint( |
| 93 | rustAPI.syncPlatformDetails( |
| 94 | identityInfo.userId, |
| 95 | deviceID, |
| 96 | identityInfo.accessToken, |
| 97 | ), |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | async function uploadOneTimeKeys( |
| 102 | identityInfo: IdentityInfo, |
no test coverage detected