interface v1 for login and discover