<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hazem</title>
    <description>The latest articles on DEV Community by Hazem (@hazem).</description>
    <link>https://dev.to/hazem</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F606743%2F540a71a7-2473-41c9-a879-18f4e6bd41f2.jpg</url>
      <title>DEV Community: Hazem</title>
      <link>https://dev.to/hazem</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hazem"/>
    <language>en</language>
    <item>
      <title>I spent a year fighting Logto auth wiring. So I packaged it.</title>
      <dc:creator>Hazem</dc:creator>
      <pubDate>Tue, 31 Mar 2026 19:31:24 +0000</pubDate>
      <link>https://dev.to/hazem/i-spent-a-year-fighting-logto-auth-wiring-so-i-packaged-it-4epl</link>
      <guid>https://dev.to/hazem/i-spent-a-year-fighting-logto-auth-wiring-so-i-packaged-it-4epl</guid>
      <description>&lt;p&gt;If you've ever integrated Logto into a React app, you know the drill.&lt;/p&gt;

&lt;p&gt;The official SDK gives you the primitives, and then you spend the next few hours building the same stuff you built last time - a callback page, a sign-in route, backend JWT verification, cookie syncing, JWKS caching. It's not hard, just tedious. And somehow you end up doing it again on the next project.&lt;/p&gt;

&lt;p&gt;I've been using Logto for almost a year across several of my own apps and I got tired of it. So I built &lt;code&gt;@ouim/logto-authkit&lt;/code&gt; - an opinionated React auth toolkit that wraps &lt;code&gt;@logto/react&lt;/code&gt; with all that missing layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it ships:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AuthProvider&lt;/code&gt; + &lt;code&gt;useAuth&lt;/code&gt; with route protection built in&lt;/li&gt;
&lt;li&gt;Prebuilt &lt;code&gt;SignInPage&lt;/code&gt;, &lt;code&gt;CallbackPage&lt;/code&gt;, &lt;code&gt;UserCenter&lt;/code&gt; dropdown&lt;/li&gt;
&lt;li&gt;Backend JWT verification for Express and Next.js App Router&lt;/li&gt;
&lt;li&gt;JWKS caching with automatic invalidation on key rotation&lt;/li&gt;
&lt;li&gt;CSRF protection, guest mode, popup sign-in support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's been running in production on a couple of my apps - &lt;a href="https://tstore.ouim.me" rel="noopener noreferrer"&gt;tstore.ouim.me&lt;/a&gt; and &lt;a href="https://mocka.ouim.me" rel="noopener noreferrer"&gt;mocka.ouim.me&lt;/a&gt; - and I think it's mature enough now to get real users and contributors.&lt;/p&gt;

&lt;p&gt;If you use Logto and have opinions about auth APIs, I'd genuinely love the feedback. What's missing? What feels wrong?&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/ouim-me/logto-authkit" rel="noopener noreferrer"&gt;github.com/ouim-me/logto-authkit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>authjs</category>
      <category>logto</category>
      <category>opensource</category>
      <category>react</category>
    </item>
  </channel>
</rss>
