use config.apiEndpoint in auth service
fix router navigate after login