問題タブ [next-auth]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
2031 参照

next.js - プロバイダーが Auth0 の場合、next-auth サインインが oauth_get_access_token_error および callback_oauth_error エラーで失敗する

Auth0 を介した承認用の next-auth ライブラリを使用する NextJS アプリで、承認フロー中にエラーが発生します。

参照されているエラーには詳細がありません。

auth0 のアプリケーション設定は、auth0 ログインが不平を言っているため、実際にはベースのみにAllowed Callback URLs設定されています。http://localhost:3000/api/auth/callback/auth0

./api/auth/...[nextauth]ファイル内の next-auth 構成は次のようになります。

設定ミスの原因は何ですか? localhost で next-auth プロバイダーを介して auth0 を実行することはまったく可能ですか?