mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-03 07:12:34 -08:00
14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
import type { CryptoApi } from '$types/matrix-sdk';
|
|
|
|
export const verifiedDevice = async (
|
|
api: CryptoApi,
|
|
userId: string,
|
|
deviceId: string
|
|
): Promise<boolean | null> => {
|
|
const status = await api.getDeviceVerificationStatus(userId, deviceId);
|
|
|
|
if (!status) return null;
|
|
|
|
return status.crossSigningVerified;
|
|
};
|