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