Open aurelius-coffee opened 4 months ago
Yea, an Astro SDK, or at least a tutorial, would be amazing. +1
🙌 Good news, I managed to integrate Logto with Astro SSR by using Lucia Auth as the middleman.
Link to an example: https://github.com/RyzeKit/astro-logto-auth-example
hey @RyzeKit , thanks for link and example project. I easily set up hanko inbetween then and now but have grown frustrated with their free plan not having webhooks and a limit of 2 environments. There's https://github.com/JacobWeinbren/astro-kinde/tree/main#readme which is easy enough to setup and has a more generous free tier (still 2 environments, but each can have multiple apps), however it just seems overly complicated. I'm trying out logto again and have just arrived at the stage of having to save sessions somewhere, and I can do it in the db, but every additional thing needed to make it work makes it more cumbersome to maintain imo.
I'm currently evaluating kinde, logto and supertokens.
Thanks so much for showing a working example <3
What problem did you meet?
Implementing Logto using Astro. I tried using protected pages, which do always send the authorization header for every protected page, but could not figure out how to protect pages. The logto session cookie does not get removed using /sign-out. I then moved to traditional web, but the example using express is so specific, It's hard to implement using Astro SSR and cloudflare, which doesn't support all node APIs. How do I implement traditional web or protected pages with Astro SSR?
Describe what you'd like Logto to have
Astro integration, or Solid integration.