Use the hook useHasuraClaim to get the value of a specific Hasura claim of the user.
useHasuraClaim
// if `x-hasura-company-id` exists as a custom claim const companyId = useHasuraClaim('company-id')
name required string
string
Was this page helpful?