[英]How can I keep user keep user logged in RingCentral while using Authorization code flow?
In web phone call, I am using Authorization flow.在网络电话中,我使用的是授权流程。 Currently, On page load, I have called URL for an authorization code and after that user will be logged and perform Inbound and Outbound call operations.
目前,在页面加载时,我已调用 URL 获取授权代码,然后该用户将被登录并执行入站和出站呼叫操作。 But when the user opens a new tab, the user need to generate authorization code and login.
但是当用户打开一个新选项卡时,用户需要生成授权码并登录。 I am not able to store any credentials in the database as well.
我也无法在数据库中存储任何凭据。 so please let me what way I can prevent login process again and again.
所以请让我有什么方法可以一次又一次地阻止登录过程。
Without knowing more about how your application code is structured, it is difficult to answer this question properly.如果不了解更多关于您的应用程序代码的结构,就很难正确回答这个问题。 It is much easier to answer questions here which have code you've implemented or have tested to solve the problem.
在这里回答问题要容易得多,这些问题具有您已实现或已测试以解决问题的代码。 If you could provide that, it would help.
如果你能提供那个,它会有所帮助。
In the meantime, could you store access_token
in LocalStorage?同时,您能否将
access_token
存储在 LocalStorage 中? Then if the user opens a new tab, your app can use the existing token in localStorage?那么如果用户打开一个新选项卡,您的应用程序可以使用 localStorage 中的现有令牌吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.