API to generate auth tokens