rp
12/14/2022, 2:40 AManand
12/14/2022, 5:05 AMproductdevbook
12/14/2022, 6:55 AMts
thirdPartySignInUpPOST: async (input) => {
try {
await originalImplementation.thirdPartySignInUpPOST!(input)
}
catch (err: any) {
if (err.message === 'Cannot sign up as email already exists') {
// this error was thrown from our function override above.
// so we send a useful message to the user
return {
status: 'GENERAL_ERROR',
message: 'Seems like you already have an account with another method. Please use that instead.',
}
}
throw err
}
mib200
12/14/2022, 9:15 AMmib200
12/14/2022, 9:15 AMDalai Llama
12/14/2022, 9:49 AMNathan
12/14/2022, 10:08 AMNathan
12/14/2022, 10:20 AMNathan
12/14/2022, 12:07 PMproductdevbook
12/15/2022, 5:34 AMAlen
12/15/2022, 6:27 AMgc1980
12/15/2022, 11:04 AMgc1980
12/15/2022, 11:05 AMrp
12/15/2022, 11:15 AMMike D
12/15/2022, 2:33 PMrp
12/15/2022, 3:33 PMsix0h
12/15/2022, 3:56 PMsix0h
12/15/2022, 3:56 PMVaiva
12/15/2022, 4:36 PMuserContext:{ firstName: firstName}
chill_cheese
12/15/2022, 4:59 PMtymek65
12/15/2022, 7:15 PMd3adb0y
12/15/2022, 7:28 PMd3adb0y
12/15/2022, 7:35 PMd3adb0y
12/15/2022, 7:35 PM<Routes>
{/* This shows the login UI on "/auth" route */}
{getSuperTokensRoutesForReactRouterDom(require("react-router-dom"))}
<Route
path="/"
element={
/* This protects the "/" route so that it shows
<Home /> only if the user is logged in.
Else it redirects the user to "/auth" */
<SessionAuth
onSessionExpired={() => {
updateShowSessionExpiredPopup(true);
}}>
<Home />
{showSessionExpiredPopup && <SessionExpiredPopup />}
</SessionAuth>
}
/>
</Routes>
rp
12/16/2022, 2:41 AMrp
12/16/2022, 2:42 AMtymek65
12/16/2022, 2:43 AMpandapending
12/16/2022, 3:07 AMChunkygoo
12/16/2022, 7:31 AMJonatan Vieira
12/16/2022, 11:35 AM