<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>JWT</anon>
    <anon>TypeScript</anon>
    <anon>Node.js</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>Next.js で jsonwebtoken を使って作成した JWT から中に含まれるデータを取り出そうとま verify しようとしたらエラーになってしまったので原因と解決策のメモ 環境 Next.js 13.2.1 React 18.2.0 TypeScript 4.9.5 jsonwebtoken 9.0.0 状況 // api import { sign } from &quot;jsonwebtoken&quot;; export default function handler( req: NextApiRequest, res: NextApiResponse&lt;Data&gt;, ) { // 略 co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2023%2F04%2F11%2F083000&quot; title=&quot;TypeScript jsonwebtoken で JWT を verify しようとしたら Right-hand side of &amp;#39;instanceof&amp;#39; is not an object というエラーになった件 - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/5184ZgaxVbL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-11 08:30:00</published>
  <title>TypeScript jsonwebtoken で JWT を verify しようとしたら Right-hand side of 'instanceof' is not an object というエラーになった件</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2023/04/11/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
