Intergrating Start with Logto
Ive done alot of these:
const logto = typeof window !== "undefined" ? useLogto() : null;
const LogtoWrapper = ({ children }: { children: ReactNode }) => {
if (!isBrowser) {
// Avoid initializing Logto during SSR
return <>{children}</>;
}
return <LogtoProvider config={config}>{children}</LogtoProvider>;
};
function RootComponent() {
return (
<LogtoWrapper>
<RootDocument>
<Outlet />
</RootDocument>
</LogtoWrapper>
);
}
to get Logto to work, im using their react sdk, how can i implement Logto in a more intuitive manner with Start?
5 Replies
eastern-cyan•10mo ago
can you provide a complete example repo?
passive-yellowOP•10mo ago
okay let me do so
@Manuel Schiller Did the repo i provided help? since Logto has a nextjs(app router)sdk , i decided to use the react sdk version but its completely client side, any ideas?
Or can i play around with the nextjs sdk in start and get it to work since its all server-actions/functions
eastern-cyan•10mo ago
I did not have time yet to look into it
I saw that there is a remix sdk as well
would make sense to try this out as remix shares quite some similarities with start
exotic-emerald•9mo ago
Hey there! Did you have any luck with this integration?
passive-yellowOP•9mo ago
still using the react sdk version