import * as plugins from '../../plugins.ts'; import type { AdminHandler } from '../handlers/admin.handler.ts'; import * as interfaces from '../../../ts_interfaces/index.ts'; export async function requireValidIdentity( adminHandler: AdminHandler, dataArg: T, ): Promise { return await adminHandler.getVerifiedIdentity(dataArg.identity); } export async function requireAdminIdentity( adminHandler: AdminHandler, dataArg: T, ): Promise { return await adminHandler.getVerifiedAdminIdentity(dataArg.identity); }