useTokenPolling
Periodically calls `POST /auth/token` to refresh the bearer token. On a 401 or 500 response the session is cleared (`authStore.reset()`) and `onSessionEnded`…
Periodically calls `POST /auth/token` to refresh the bearer token. On a 401 or 500 response the session is cleared (`authStore.reset()`) and `onSessionEnded` fires so the host app can redirect to its sign-in page.
import { useTokenPolling } from "@tetherto/mdk-react-adapter";Signature
(options: UseTokenPollingOptions = {}) => void| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |