Example architectures for detecting the user's authenticated state client-side in Next.js when using an HttpOnly cookie