Skip to content

Commit 0a9100c

Browse files
authored
Consistently pass redirectUri to getAuthorizationUrl in middleware (#251)
1 parent 4dd9aa2 commit 0a9100c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/session.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ async function updateSession(
250250
headers: newRequestHeaders,
251251
authorizationUrl: await getAuthorizationUrl({
252252
returnPathname: getReturnPathname(request.url),
253+
redirectUri: options.redirectUri || WORKOS_REDIRECT_URI,
253254
}),
254255
};
255256
}

0 commit comments

Comments
 (0)