workos / authkit-js

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

don't trigger onRefreshFailure on initial refresh #21

Closed cmatheson closed 2 months ago

cmatheson commented 2 months ago

authkit-js attempts to refresh the session when the page loads (unless a code is present). This initial request should NOT trigger the onRefreshFailure logic.