import { Request } from 'express' ; import constants from './config/constants' ; import { ApiError } from './config/ErrorHandler' ; export type res = { status : number ; message : string ; } ; export async function expressAuthentication ( request , securityName , scopes ? ) { switch ( securityName ) { case 'admin' : return null ; } throw new ApiError ( constants . errorTypes . auth ) ; }