SpoonX / aurelia-authentication

Authentication plugin for aurelia.
http://aurelia-authentication.spoonx.org
MIT License
90 stars 60 forks source link

fix(authService): update internal authentication fields #407

Closed MaximBalaganskiy closed 5 years ago

MaximBalaganskiy commented 5 years ago

This is critical for a scenario when two or more browser windows are open and one of them refreshes a token. Previously this.authentication.exp was equal to the old token exp, which caused premature sign out event, which in its' turn signed out all the open windows.

RWOverdijk commented 5 years ago

@MaximBalaganskiy I'm having a hard time grasping the fix. Could you add a test case for it?

MaximBalaganskiy commented 5 years ago

Here they are

RWOverdijk commented 5 years ago

👌 Nice.