[XAPID-1037] refactor verify apikey
6 files changed