Skip to content

Commit 5e50db3

Browse files
fix(web): fix origin bug in approval email and add withAuthV2_skipMembershipCheck
- Replace undefined `origin` global with `env.AUTH_URL` in the join request approval email plaintext body. - Add `withAuthV2_skipMembershipCheck` wrapper for actions where the user may not yet be an org member (joinOrganization, redeemInvite, getInviteInfo). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6fcb5c2 commit 5e50db3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ export const approveAccountRequest = async (requestId: string) => sew(async () =
12101210
from: env.EMAIL_FROM_ADDRESS,
12111211
subject: `Your request to join ${org.name} has been approved`,
12121212
html,
1213-
text: `Your request to join ${org.name} on Sourcebot has been approved. You can now access the organization at ${origin}/${org.domain}`,
1213+
text: `Your request to join ${org.name} on Sourcebot has been approved. You can now access the organization at ${env.AUTH_URL}/${org.domain}`,
12141214
});
12151215

12161216
const failed = result.rejected.concat(result.pending).filter(Boolean);

0 commit comments

Comments
 (0)