We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04a4092 commit df17bc3Copy full SHA for df17bc3
lib/auth.js
@@ -149,7 +149,7 @@ async function refreshMultiAuthCookies (req, res) {
149
// only refresh session cookie manually if we switched to anon since else it's already handled by next-auth
150
if (key === SESSION_COOKIE && !isAnon) continue
151
152
- if (!key.startsWith(MULTI_AUTH_LIST) && key !== SESSION_COOKIE) continue
+ if (!MULTI_AUTH_REGEXP.test(key) && key !== SESSION_COOKIE) continue
153
154
if (MULTI_AUTH_JWT_REGEXP.test(key) || key === SESSION_COOKIE) {
155
const oldToken = value
0 commit comments