Check for cookies using angular-cookies before using the API.