<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Auth0 on oinume journal</title>
		<link>https://journal.lampetty.net/categories/auth0/</link>
		<description>Recent content in Auth0 on oinume journal</description>
		<generator>Hugo</generator>
		<language>ja</language>
		
		
		
		
			<lastBuildDate>Tue, 02 May 2023 08:30:00 +0900</lastBuildDate>
		
			<atom:link href="https://journal.lampetty.net/categories/auth0/rss.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Next.js &#43; Auth0でLogin handler failedのエラーを解消する</title>
				<link>https://journal.lampetty.net/posts/nextjs-auth0-resolve-login-handler-failed/</link>
				<pubDate>Tue, 02 May 2023 08:30:00 +0900</pubDate>
				<guid>https://journal.lampetty.net/posts/nextjs-auth0-resolve-login-handler-failed/</guid>
				<description>&lt;p&gt;Next.js + Auth0で認証機能を実装しようとして、&lt;a href=&#34;https://www.npmjs.com/package/@auth0/nextjs-auth0&#34;&gt;nextjs-auth0&lt;/a&gt;をセットアップしつつ、&lt;a href=&#34;https://auth0.com/docs/quickstart/webapp/nextjs/01-login&#34;&gt;このドキュメント&lt;/a&gt;通りにやっていたら、&lt;code&gt;AUTH0_ISSUER_BASE_URL&lt;/code&gt; の設定を間違えていて以下のエラーが出ていた。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;LoginHandlerError: Login handler failed. CAUSE: Discovery requests failing for http://localhost:3000, expected 200 OK, got: 404 Not Found&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;上のauth0のドキュメントでは &lt;code&gt;AUTH0_ISSUER_BASE_URL=&#39;https://{yourDomain}&#39;&lt;/code&gt; との記述だったので、&lt;a href=&#34;http://localhost:3000&#34;&gt;http://localhost:3000&lt;/a&gt;を指定したのだけど、どうやらこれは&lt;code&gt;https://YOUR_AUTH0_DOMAIN.auth0.com&lt;/code&gt;を記述するのが正しいらしい。というわけでAuth0の該当アプリケーションのページから&lt;code&gt;Domain&lt;/code&gt;の部分をコピーしてきて&lt;code&gt;https://oinume.us.auth0.com&lt;/code&gt;のように指定すればOK。というか&lt;a href=&#34;https://www.npmjs.com/package/@auth0/nextjs-auth0&#34;&gt;nextjs-auth0&lt;/a&gt;にはそのように記載されていたのではじめからこっちを読んでおけばよかった...&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
