useAuthToken
Reads `?authToken=…` from `window.location.search`, persists it into the headless `authStore`, and strips the parameter from the URL via `history.replaceStat…
Reads `?authToken=…` from `window.location.search`, persists it into the headless `authStore`, and strips the parameter from the URL via `history.replaceState` so the token never lingers in the address bar.
import { useAuthToken } from "@tetherto/mdk-react-adapter";Signature
() => string | null| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |