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
absent-sapphire•13mo ago
can you provide a complete example repo?
xenial-blackOP•13mo 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
absent-sapphire•13mo 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
cloudy-cyan•12mo ago
Hey there! Did you have any luck with this integration?
xenial-blackOP•11mo ago
still using the react sdk version