created the interface for doLogin service along with the token generator function