admin管理员组文章数量:1357167
I followed the guide for refresh token rotation and it is working for me. When I fetch the session from my Next frontend it does correctly refresh the token if needed. I've found, however, that if I close out my site's tab in my browser while the token is valid and then open a new one later, that authjs seems unable to refresh the auth token. My server console log tells me that the refresh token it is using does not exist. This only happens, however, if the site was not open in my browser when the session expired.
I am attempting to fetch the user session using getSession() on the client. Is this the expected behavior of authjs? Do I need to store the refresh token somewhere client-side? This seems wrong but I am uncertain.
本文标签:
版权声明:本文标题:authentication - Is it possible for authjs to refresh the auth token if I close the tab and return to my site in a new one? - St 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744073624a2586341.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论