logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
7.86k stars 386 forks source link

feature request: Astro Example for Traditional Web #6115

Open aurelius-coffee opened 2 weeks ago

aurelius-coffee commented 2 weeks ago

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.