We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa15b3 commit 7d118ecCopy full SHA for 7d118ec
lib/auth.js
@@ -139,7 +139,7 @@ async function refreshMultiAuthCookies (req, res) {
139
// only refresh session cookie manually if we switched to anon since else it's already handled by next-auth
140
if (key === SESSION_COOKIE && !isAnon) continue
141
142
- if (!key.startsWith(MULTI_AUTH_LIST) && key !== SESSION_COOKIE) continue
+ if (!MULTI_AUTH_REGEXP.test(key) && key !== SESSION_COOKIE) continue
143
144
if (MULTI_AUTH_JWT_REGEXP.test(key) || key === SESSION_COOKIE) {
145
const oldToken = value
0 commit comments