UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

9 lines (7 loc) 256 B
import {useClient} from '../../../../hooks' import {DEFAULT_API_VERSION} from '../constants' export function useToken(): string | undefined { const client = useClient({apiVersion: DEFAULT_API_VERSION}) const {token} = client.config() return token }