app/models/ibrain/auth/user.rb in ibrain-auth-0.1.7 vs app/models/ibrain/auth/user.rb in ibrain-auth-0.1.8

- old
+ new

@@ -15,10 +15,10 @@ def jwt_payload # for hasura hasura_keys = { 'https://hasura.io/jwt/claims': { - 'x-hasura-allowed-roles': [role], + 'x-hasura-allowed-roles': User.roles.keys, 'x-hasura-default-role': role, 'x-hasura-user-id': id.to_s } }