<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugar-cat-dev</author_name>
  <author_url>https://blog.hatena.ne.jp/sugar-cat-dev/</author_url>
  <blog_title>sugar cat blog</blog_title>
  <blog_url>https://blog.sugar-cat.dev/</blog_url>
  <categories>
  </categories>
  <description>Better Authを利用したサービスでGoogleログイン後に Email OTP（6桁のワンタイムパスワード）でメールアドレスの所有確認を挟みたいな〜という場面があり、 Better Auth の emailOTP プラグインと Drizzle Adapter を組み合わせて、OAuth ログイン後のメール認証を実装を楽できたのでメモとして残す。 昨今色々なサービスで使われているEmail OTP。OTP の生成・ハッシュ化・保存・検証・有効期限管理を自前で実装するのは結構面倒です(?) developer.mozilla.org Drizzle Adapter の schema map…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.sugar-cat.dev%2Fentry%2F2026%2F02%2F17%2F100000&quot; title=&quot;Better AuthのEmail OTP + DrizzleでメールOTP認証 - sugar cat blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-17 10:00:00</published>
  <title>Better AuthのEmail OTP + DrizzleでメールOTP認証</title>
  <type>rich</type>
  <url>https://blog.sugar-cat.dev/entry/2026/02/17/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
