Adding ability to store API token in a cookie