UNPKG

@qelos/auth

Version:

Express Passport authentication service

8 lines (4 loc) 140 B
const checkForHexRegExp = new RegExp('^[0-9a-fA-F]{24}$') export function isObjectId (id:string) { return checkForHexRegExp.test(id) }