Hope this answers your query.
It should be noted that js-cookie
can only interact with cookies which are accessible by javascript.
As @c3roe rightly mentioned, you are receiving null
because there is no javascript-accessible cookie with the name authToken
.
Debug Approach:
authToken
via devTools.httpOnly
cookie ( httpOnly cookies are inaccessible by javascript ).