component-dbs-core
Version:
DTO objects shared among device backend
14 lines (13 loc) • 748 B
TypeScript
import { EnvironmentService } from '../common_services/config';
import { DeviceDb } from './deviceDb';
import { DynamodbService } from '../common_services/dynamodb/dynamodbService';
export declare class DeviceVerification {
private readonly dynamodbService;
private readonly envService;
deviceDb: DeviceDb;
constructor(dynamodbService: DynamodbService, envService: EnvironmentService);
isDeviceUuidValid: (uuid: string) => Promise<boolean>;
isDeviceTokenValid: (uuid: string, accessToken: string, refreshToken?: string | undefined, idToken?: string | undefined) => Promise<boolean>;
isDevicePinValid: (pin: string, deviceUuid: string) => Promise<boolean>;
checkAccessToken: (accessToken: string) => Promise<void>;
}