getHasuraClaim()
Use nhost.auth.getHasuraClaim
to get the value of a specific Hasura claim of the user.
@see
{@link https://hasura.io/docs/latest/graphql/core/auth/authentication/jwt/| Hasura documentation}
// if `x-hasura-company-id` exists as a custom claim
const companyId = nhost.auth.getHsauraClaim('company-id')
Parameters
name required string
Name of the variable. You don't have to specify x-hasura-
.