Skip to content

Commit e8b5c8f

Browse files
author
Alexis
committed
fix: ensure we await the redirectToPostLoginUrl as it is a promise
1 parent 829052e commit e8b5c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/handleAuth/handleAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function handleAuth({
8282
request as unknown as SessionManager,
8383
new URL(request.url),
8484
);
85-
redirectToPostLoginUrl();
85+
await redirectToPostLoginUrl();
8686
return redirect(302, kindeConfiguration.loginRedirectURL ?? "/");
8787
case "logout":
8888
url = await kindeAuthClient.logout(request as unknown as SessionManager);

0 commit comments

Comments
 (0)