Skip to content

Commit 3301d07

Browse files
committed
chore: improve comment
1 parent ac50aee commit 3301d07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/clerk/authRedirect.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export interface ClerkSignInProps {
55

66
export function resolveClerkSignInProps(href: string, isElectron: boolean): ClerkSignInProps {
77
if (isElectron) {
8-
// Match @clerk/electron's callback root for direct sign-in and sign-up transfers;
9-
// otherwise Clerk's modal can submit its virtual route as the completion redirect.
8+
// @clerk/electron supplies the authorized renderer root for OAuth callbacks, but Clerk's
9+
// modal can submit its virtual route as the completion redirect for sign-in or sign-up.
1010
const redirectUrl = new URL("/", href).toString();
1111
return {
1212
forceRedirectUrl: redirectUrl,

0 commit comments

Comments
 (0)