workos / authkit-js

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

Add option to configure refresh buffer interval #39

Closed mthadley closed 1 month ago

mthadley commented 1 month ago

Adds a new refreshBufferInterval representing how long before the current access token expires to start attempting to refresh. For apps that may run in poor network conditions, this gives their clients more of a buffer.