Skip to main content
The examples below use the demo token endpoint. Replace TOKEN_API_URL with an authenticated backend endpoint before deploying to production. The live demo uses the Gcore Video Player tab below and shows token status and refresh log in real time.
Demo player showing active token status and refresh log with CDN segment requests in devtools
TokenRefreshPlugin handles token rotation without a custom URL loader or request interceptor. The plugin reads the initial token from the source URL, rewrites every outgoing request, and calls getToken automatically before expiry.The package is on GitHub at github.com/G-Core/gcore-videoplayer-js.