Skip to content

Commit e3567ea

Browse files
committed
remove 1 line lol
1 parent cd674bf commit e3567ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,12 @@ export function createAuth<
206206
}>
207207
}
208208
) {
209-
const { auth } = await params
209+
const {
210+
auth: [method, provider]
211+
} = await params
210212
const { searchParams } = new URL(request.url)
211213
const code = searchParams.get('code')
212214
const state = searchParams.get('state')
213-
const [method, provider] = auth
214215

215216
if (!code || !state) {
216217
return new Response('Missing code or state parameter', { status: 400 })

0 commit comments

Comments
 (0)