workos / authkit-js

Vanilla JS AuthKit SDK
MIT License
9 stars 3 forks source link

don't attempt to refresh in ERROR state #28

Closed cmatheson closed 2 months ago

cmatheson commented 2 months ago

ERROR is a fatal state, further calls to refresh the session are wasted (right now when the session ends, this library will attempt to fruitlessly refresh every second).