【问题标题】:auth0.js unable to get refresh tokenauth0.js 无法获取刷新令牌
【发布时间】:2021-06-12 13:24:24
【问题描述】:

我正在使用 auth0-js

const auth = new auth0.WebAuth({
  domain: origin,
  clientID: cId,
  redirectUri: `${window.location.origin}/cb`,
  responseType: 'code',
  scope: 'openid email profile offline_access',
});
auth.authorize();

在回调中,我是唯一获得access_token、idToken的人。但根据刷新令牌的文档,只需将 offline_access 添加到范围。它将返回一个刷新令牌。

【问题讨论】:

    标签: javascript node.js auth0


    【解决方案1】:

    我得到了答案,我要通过auth.authorize({prompt: 'consent'})中的prompt

    【讨论】:

      猜你喜欢
      • 2017-12-28
      • 2019-02-25
      • 2020-01-14
      • 2022-12-14
      • 1970-01-01
      • 2019-10-26
      • 1970-01-01
      • 1970-01-01
      • 2013-08-23
      相关资源
      最近更新 更多