Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

feat(authService): signal the token expires #202

Merged
merged 4 commits into from
Jul 12, 2016

Conversation

doktordirk
Copy link
Contributor

use BindingSignaler to signal when the token expires

preview

@RWOverdijk
Copy link
Member

I like this... We could thing about the key a bit more but the concept is cool. How would I use this?

@doktordirk
Copy link
Contributor Author

doktordirk commented Jun 23, 2016

https://www.danyow.net/aurelia-binding-behaviors/

${postDateTime | timeAgo & signal:'my-signal'}

and hopefully like as custom updateTrigger
if.bind="myPara | signal:'token-expired'"
aka the bind will be checked when token-expired is signalled

@RWOverdijk
Copy link
Member

Oooooh that's cool. :D

@doktordirk
Copy link
Contributor Author

ps: i'm open to change to a better signal name 😄

@RWOverdijk
Copy link
Member

I think I can live with this for now.

@doktordirk doktordirk merged commit d86be21 into SpoonX:master Jul 12, 2016
@doktordirk doktordirk deleted the signaler branch July 12, 2016 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants