getHasuraClaim()
Get the value of a given Hasura claim in the current access token (JWT). Returns null if the user is not authenticated, or if the claim is not in the token.
Return null
if the user is not authenticated (no token)
@see
{@link https://hasura.io/docs/latest/graphql/core/auth/authentication/jwt/|Hasura documentation}
Parameters
name required string
name of the variable. Automatically adds the x-hasura-
prefix if it is missing