cocart-headless / cocart-core

This is the core of CoCart that provides support for managing the user session and decouples WooCommerce.
Other
3 stars 1 forks source link

Authentication is failing to identify current user if authentication is not provided. #12

Open seb86 opened 12 months ago

seb86 commented 12 months ago

Prerequisites

Describe the bug

PHP Warning:  Attempt to read property "ID" on null in I:\LocalWP\cocart\app\public\wp-content\plugins\co-cart\includes\class-cocart-authentication.php on line 99

Expected behavior

Clean JSON response.

Actual behavior

Error shows before JSON response.

Isolating the problem

seb86 commented 12 months ago

Commit: https://github.com/co-cart/co-cart/commit/f6fb7a4eb809a80144e75c33b4cc35435663661d