LoginSignup
1
0

More than 3 years have passed since last update.

auth0でログイン後WebAuth.checkSession()から常に'login required'を要求される

Last updated at Posted at 2020-11-10

ライブラリはauth0-jsを利用しています。

エラーが起こる箇所

      webAuth.checkSession({}, (err, authResult) => {
        if (err) {
          reject(err);
        } else {
          this.localLogin(authResult);
          resolve(authResult);
        }
      });   

コンソールに返ってくる内容

{
code: login_required,
description: Login required,
error: login_required,
error_description: Login required,
original: {
error: login_required,
error_description: Login required
}

解決方法

サードパーティのcookiesの利用を可能にする。
(私の場合テスト環境はBraveでした。ライオンをクリックしてアドブロックをオフにしましょう!)

参考記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0