我想将用户重定向到登录工作流程之前的当前页面。
是否有可能将其他信息传递给auth0-js(例如{from: '/profile'}
)?
这是我在我的反应应用程序中初始化Auth0-js:
auth0 = new auth0.WebAuth({
domain: 'xxx.auth0.com',
clientID: 'xxx',
redirectUri: 'http://localhost:3000/callback',
audience: 'https://xxx.auth0.com/userinfo',
responseType: 'token id_token',
scope: 'openid profile offline_access'
});
要记录用户:
auth0.authorize();
如果不在localStorage中存储信息,我找不到办法。