【发布时间】: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