Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit c3e538d

Browse files
authored
Update redirect.js
1 parent 5a3eabe commit c3e538d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redirect/functions/redirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports.handler = async function (event, _context) {
2525
const url = new URL(Buffer.from(state, 'base64url').toString())
2626
const scheme = url.protocol.slice(0, -1)
2727
if (
28-
url.host === 'https://github.dev' &&
28+
url.origin === 'https://github.dev' &&
2929
url.pathname === '/extension-auth-callback'
3030
) {
3131
validQueryParams = new Set(['state'])

0 commit comments

Comments
 (0)