MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / startSignUp

Function startSignUp

apps/web/contexts/Join.tsx:48–61  ·  view source on GitHub ↗
(props: StartSignUpProps)

Source from the content-addressed store, hash-verified

46 }
47
48 const startSignUp = async (props: StartSignUpProps) => {
49 setFlow(props.flow || 'signup');
50 setCommunityId(props.communityId);
51 setCallbackUrl(props.redirectUrl || window.location.href);
52 const session = await getSession();
53 if (session) {
54 const res = await join({ communityId: props.communityId });
55 if (res.ok) {
56 window.location.replace(props.redirectUrl || window.location.href);
57 return;
58 }
59 }
60 setOpen(!open);
61 };
62
63 const onSuccessfulSignIn = async () => {
64 const session = await getSession();

Callers 4

sendMessageWrapperFunction · 0.85
createThreadWrapperFunction · 0.85
createMessageWrapperFunction · 0.85
showModalFunction · 0.85

Calls 2

getSessionFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected