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

Function onSuccessfulSignIn

apps/web/contexts/Join.tsx:63–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 };
62
63 const onSuccessfulSignIn = async () => {
64 const session = await getSession();
65 if (session && communityId) {
66 const res = await join({ communityId });
67 if (res.ok) {
68 window.location.replace(window.location.href);
69 return;
70 }
71 }
72 setOpen(false);
73 };
74
75 const onCloseModal = () => {
76 setOpen(false);

Callers

nothing calls this directly

Calls 2

getSessionFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected