syncromatics / syncromatics-track-api

Library to interact with the Syncromatics Track API
https://www.npmjs.com/package/syncromatics-track-api
6 stars 1 forks source link

feat(login): Add JWT auto-renew failure callback. #68

Closed cuevaskoch closed 4 years ago

cuevaskoch commented 4 years ago

Sometimes we can't renew our JWT before it expires One possible scenario where this could happen is if the user's computer is suspended when the JWT expires, upon coming back from suspension we try to renew the JWT using a now-invalid JWT. This leaves us in a limbo state where we have no valid JWT and no way to retrieve a new one.

Add a callback in case auto-renewing a JWT fails, so that we can at least inform the user that the application will no longer work as expected.

Supports EN-5289.

Signed-off-by: Jeff Cuevas-Koch jcuevas-koch@gmvsync.com

thzinc commented 4 years ago

Is this still a valid PR?

cuevaskoch commented 4 years ago

Might as well kill it, I believe we have moved on to just having the "trying to connect..." message