Skip to content

Commit d1dbfe1

Browse files
authored
fix: truly replace .flat() to support Node <11 again (#1691)
1 parent 63171a0 commit d1dbfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/lib/oauth/state-handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function handleCallback (req, res) {
4141
export async function handleSignin (req, res) {
4242
const { provider, baseUrl, basePath, csrfToken } = req.options
4343
try {
44-
if (![provider.protection].flat().includes('state')) { // Provider does not support state, nothing to do.
44+
if (!provider.protection.includes('state')) { // Provider does not support state, nothing to do.
4545
return
4646
}
4747

0 commit comments

Comments
 (0)