From 96f149fa794fb9dae8c4e174ea63754446657a89 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 18 Jul 2025 19:57:28 +0200 Subject: [PATCH] Fix anon check in SSR apollo client (#2295) --- api/ssrApollo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ssrApollo.js b/api/ssrApollo.js index d5513b7d..f83dd421 100644 --- a/api/ssrApollo.js +++ b/api/ssrApollo.js @@ -15,7 +15,7 @@ import { getServerSession } from 'next-auth/next' import { getAuthOptions } from '@/pages/api/auth/[...nextauth]' import { NOFOLLOW_LIMIT } from '@/lib/constants' import { satsToMsats } from '@/lib/format' -import { MULTI_AUTH_ANON, MULTI_AUTH_LIST } from '@/lib/auth' +import { MULTI_AUTH_ANON, MULTI_AUTH_POINTER } from '@/lib/auth' export default async function getSSRApolloClient ({ req, res, me = null }) { const session = req && await getServerSession(req, res, getAuthOptions(req)) @@ -156,7 +156,7 @@ export function getGetServerSideProps ( // required to redirect to /signup on page reload // if we switched to anon and authentication is required - if (req.cookies[MULTI_AUTH_LIST] === MULTI_AUTH_ANON) { + if (req.cookies[MULTI_AUTH_POINTER] === MULTI_AUTH_ANON) { me = null }