JSON endpoint for retrieving auth token