Skip to content

Commit b19b2bc

Browse files
authoredDec 7, 2022
fix(core): don't mutate authOptions in unstable_getServerSession (#5973)
1 parent 63c2a15 commit b19b2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/next-auth/src/next/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function unstable_getServerSession<
139139
} else {
140140
req = args[0]
141141
res = args[1]
142-
options = Object.assign(args[2], { providers: [] })
142+
options = Object.assign({}, args[2], { providers: [] })
143143
}
144144

145145
const urlOrError = getURL(

0 commit comments

Comments
 (0)
Please sign in to comment.