Adding auth to the API.