<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zuboriradio</author_name>
  <author_url>https://blog.hatena.ne.jp/zuboriradio/</author_url>
  <blog_title>shimotsu tech</blog_title>
  <blog_url>https://shimotsu.hatenablog.com/</blog_url>
  <categories>
    <anon>Supabase</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>Supabase では、認証状態の変更などに応じてトークンを Cookie にセットするためのメソッド supabase.auth.api.setAuthCookie(req: any, res: any): void が用意されています（厳密には、 GoTrue API を利用している）。 例えば、supabase.auth.onAuthStateChange((event, session) =&gt; {}) などで event を検知し、その中で上記のメソッドを実行するなどして、最新のセッション情報を Cookie に保管します。 import { NextApiRequest, NextA…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshimotsu.hatenablog.com%2Fentry%2F2022%2F02%2F19%2F153500&quot; title=&quot;Supabase の supabase.auth.api.setAuthCookie() での Cookie の保存について - shimotsu tech&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://cdn-ak.f.st-hatena.com/images/fotolife/z/zuboriradio/20220219/20220219152930.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-19 15:35:00</published>
  <title>Supabase の supabase.auth.api.setAuthCookie() での Cookie の保存について</title>
  <type>rich</type>
  <url>https://shimotsu.hatenablog.com/entry/2022/02/19/153500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
