When user logged-in with Google and redirect to same page where shortcode displayed then still page served from page cache which causing issue. So, setting cookie with prefix for that page only will bypass page cache. prefix used by most of the platform like Cloudflare.
When user logged-in with Google and redirect to same page where shortcode displayed then still page served from page cache which causing issue. So, setting cookie with prefix for that page only will bypass page cache. prefix used by most of the platform like Cloudflare.