<?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: Anthony Pan</title>
    <description>The latest articles on DEV Community by Anthony Pan (@anthonypan99).</description>
    <link>https://dev.to/anthonypan99</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4195155%2F0c5a05da-93af-473b-8ed9-abcb3cbbbb6b.png</url>
      <title>DEV Community: Anthony Pan</title>
      <link>https://dev.to/anthonypan99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anthonypan99"/>
    <language>en</language>
    <item>
      <title>Stop pasting ChatGPT into LinkedIn: a free draft workflow that keeps your voice</title>
      <dc:creator>Anthony Pan</dc:creator>
      <pubDate>Tue, 20 Oct 2026 22:12:28 +0000</pubDate>
      <link>https://dev.to/anthonypan99/stop-pasting-chatgpt-into-linkedin-a-free-draft-workflow-that-keeps-your-voice-2n3j</link>
      <guid>https://dev.to/anthonypan99/stop-pasting-chatgpt-into-linkedin-a-free-draft-workflow-that-keeps-your-voice-2n3j</guid>
      <description>&lt;p&gt;Most founders paste ChatGPT into LinkedIn, publish once, then go quiet — because it does not sound like them.&lt;/p&gt;

&lt;p&gt;Here is a 5-minute workflow that keeps your voice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;Generic ChatGPT LinkedIn posts get ignored. You waste 20 minutes rewriting tone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workflow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Dump bullets: what happened, what you learned, one concrete detail.&lt;/li&gt;
&lt;li&gt;Generate a draft in Quillpost (free, 3/day): &lt;a href="https://quillpost-liart.vercel.app" rel="noopener noreferrer"&gt;https://quillpost-liart.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Edit hard: cut opener fluff, add one real number or name, rewrite the CTA in your words.&lt;/li&gt;
&lt;li&gt;Publish only after it sounds like something you would say out loud.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why not another Taplio/ChatGPT clone
&lt;/h2&gt;

&lt;p&gt;Quillpost is free-first and edit-first. Pro ($19/mo) is waitlisted — no checkout yet: &lt;a href="https://quillpost-liart.vercel.app/pricing" rel="noopener noreferrer"&gt;https://quillpost-liart.vercel.app/pricing&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;p&gt;No LinkedIn auto-post. Drafts are meant to be edited. I built Quillpost with AI assistance.&lt;/p&gt;

&lt;h2&gt;
  
  
  CTA
&lt;/h2&gt;

&lt;p&gt;Try 1 free draft → &lt;a href="https://quillpost-liart.vercel.app" rel="noopener noreferrer"&gt;https://quillpost-liart.vercel.app&lt;/a&gt;&lt;br&gt;
Join the Pro waitlist if you want more capacity when payments open → &lt;a href="https://quillpost-liart.vercel.app/pricing" rel="noopener noreferrer"&gt;https://quillpost-liart.vercel.app/pricing&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linkedin</category>
      <category>writing</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>Supabase + Next.js 16: authorize with getClaims(), not getSession()</title>
      <dc:creator>Anthony Pan</dc:creator>
      <pubDate>Tue, 20 Oct 2026 02:09:56 +0000</pubDate>
      <link>https://dev.to/anthonypan99/supabase-nextjs-16-authorize-with-getclaims-not-getsession-4423</link>
      <guid>https://dev.to/anthonypan99/supabase-nextjs-16-authorize-with-getclaims-not-getsession-4423</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;AI disclosure:&lt;/strong&gt; I wrote this article with AI assistance. I checked every claim and code sample against the Supabase and Next.js docs linked at the end. If you spot a mistake, tell me in the comments and I'll fix it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you let an AI agent write the auth code in a Supabase + Next.js app, check one thing first: &lt;strong&gt;what your server code trusts.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agents (and plenty of older tutorials) still produce this in Server Components, Server Actions, and route handlers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getSession&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/login&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;userId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="c1"&gt;// used to decide what this request can read or write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It looks fine and it works in testing. The problem is where the data comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why getSession() is the wrong check on the server
&lt;/h2&gt;

&lt;p&gt;On the server, &lt;code&gt;getSession()&lt;/code&gt; loads the session from the auth cookie &lt;strong&gt;without revalidating it&lt;/strong&gt;. A cookie is user input. The Supabase SSR guide says so directly: anyone can forge the session cookie, so never trust &lt;code&gt;getSession()&lt;/code&gt; inside server code.&lt;/p&gt;

&lt;p&gt;If &lt;code&gt;session.user.id&lt;/code&gt; decides which rows a request can read or write, a forged cookie decides it too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use getClaims() to protect pages and data
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;getClaims()&lt;/code&gt; verifies the access token's signature before it returns the claims:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On projects with &lt;strong&gt;asymmetric JWT signing keys&lt;/strong&gt; (ECC or RSA, the default for new projects), it verifies against your project's JWKS endpoint (&lt;code&gt;/.well-known/jwks.json&lt;/code&gt;). The keys are usually cached, so this is fast.&lt;/li&gt;
&lt;li&gt;On projects still using a &lt;strong&gt;symmetric&lt;/strong&gt; key, it sends a request to the Auth server to verify the token, similar to &lt;code&gt;getUser()&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A protected Server Component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// app/dashboard/page.tsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;redirect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;next/navigation&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createClient&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@/lib/supabase/server&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;DashboardPage&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;createClient&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getClaims&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/login&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;userId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sub&lt;/span&gt; &lt;span class="c1"&gt;// verified subject (the user's id)&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;projects&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;projects&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id, name&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;owner_id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// keep RLS on as well; this filter is not your only lock&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ProjectList&lt;/span&gt; &lt;span class="na"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;projects&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Which call to use when
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You need&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;To protect a page, Server Action, route handler, or query&lt;/td&gt;
&lt;td&gt;&lt;code&gt;getClaims()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An up-to-date user record from the Auth server&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;getUser()&lt;/code&gt; (makes a network call)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The raw access or refresh token, e.g. to forward to another service&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;getSession()&lt;/code&gt;, &lt;strong&gt;never for authorization&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Server Actions are public endpoints
&lt;/h2&gt;

&lt;p&gt;A Server Action can be called over HTTP even if no button in your UI calls it. Treat each one like an API route: validate input, verify claims, then write.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free rules pack (optional)
&lt;/h2&gt;

&lt;p&gt;If you want the agent to stop inventing the old pattern, the free Next.js + Supabase Loadout pack includes this as a pinned rule: &lt;a href="https://loadout-blush.vercel.app/packs/nextjs-supabase" rel="noopener noreferrer"&gt;https://loadout-blush.vercel.app/packs/nextjs-supabase&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Canonical fix page: &lt;a href="https://loadout-blush.vercel.app/fixes/supabase-ssr-getsession-vs-getclaims" rel="noopener noreferrer"&gt;https://loadout-blush.vercel.app/fixes/supabase-ssr-getsession-vs-getclaims&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Docs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Supabase SSR / auth cookie guidance (getSession vs verified claims)&lt;/li&gt;
&lt;li&gt;Next.js App Router Server Components / Server Actions&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>supabase</category>
      <category>nextjs</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
