Open HuihuiWu-Microsoft opened 3 years ago
@RMacfarlane I don't if this is due to some usage change on the getSession() API, please let me know if it is.
Hi @HuihuiWu-Microsoft 👋
I recently gained ownership of the auth feature and so I'm getting ramped up!
It's been few versions now... Can you confirm if you're still seeing this issue?
Thanks!
I just tried and it still exists on 1.56.1
So I got some more context on this.
At one point, we changed this to the current behavior because extensions were firing getSession multiple times and causing the user to see several modals and open multiple browser windows.
With that said, you've found the downside of waiting for previous sessions to finish...they get closed and you can't successfully get getSession
to return a session until the previous one times out.
My proposal for solution is:
getSession
requests that they firegetSession
and start a new one (this is for places you don't have reference to the cancelation token)I will rename this issue and label it a feature request
Thanks
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes