@consumidor-positivo/ts-utils - v1.16.0
    Preparing search index...

    Function getAllCookies

    • Gets all cookies as a key-value object. Note: Values are automatically URI-decoded but not JSON-parsed. Use getCookie() for automatic JSON parsing.

      Returns { [key: string]: string }

      An object containing all cookies with their names as keys and values as strings

      const allCookies = getAllCookies();
      console.log(allCookies);
      // { token: 'abc123', user: 'john', sessionId: 'xyz789' }