IdentityModel / oidc-token-manager

Apache License 2.0
51 stars 36 forks source link

Return promise from TokenManager.prototype.redirectForToken #39

Closed karppinen closed 8 years ago

karppinen commented 8 years ago

Return promise from TokenManager.prototype.redirectForToken so that the client can handle any error that may occur.

This allows a client showing a loading spinner to remove it if an error occurs in TokenManager.prototype.redirectForToken.

larrifax commented 8 years ago

+1. I need this in order to detect and handle cases where the identity server is down/not responding.

@karppinen if you could resolve the merge conflicts, this will probably be merged faster. =)

brockallen commented 8 years ago

Yep, this is on my radar. I'll get to it as soon as I can. And yea, it'd be a great help if you could resolve those conflicts. thx.

brockallen commented 8 years ago

Given the merge issues, I did it manually. Also, I did the same for redirectForLogout. Done on dev, will release shortly.