getHasuraClaim()
Use nhost.auth.getHasuraClaim to get the value of a specific Hasura claim of the user.
// if `x-hasura-company-id` exists as a custom claimconst companyId = nhost.auth.getHasuraClaim('company-id')Parameters
Section titled “Parameters”name required string
Name of the variable. You don’t have to specify x-hasura-.