add auth api test

@fuqcool