Implemented auth token endpoint for API