Skip to main content

Module refresh

Module refresh 

Source

Structs§

TokenRefresher
Single-flight token refresher keyed by an arbitrary string (typically location ID or company ID). Ensures that concurrent callers for the same key share one refresh request, preventing refresh-token rotation conflicts.

Functions§

auto_refresh_token
Check if a token is expired and refresh it if needed.