| 289 | }; |
| 290 | |
| 291 | const findDevices = async params => { |
| 292 | const recipientId = getRecipientId(params); |
| 293 | const client = await createClient({ |
| 294 | recipientId, |
| 295 | optionalToken: '@' |
| 296 | }); |
| 297 | const res = await client.findDevices(params); |
| 298 | return res.status === 200 |
| 299 | ? res |
| 300 | : await checkExpiredSession(res, findDevices, params); |
| 301 | }; |
| 302 | |
| 303 | const findKeyBundles = async params => { |
| 304 | const { recipientId } = params; |
nothing calls this directly
no test coverage detected