Hey. I am Karan from foodmarkethub. I am facing a issue where I am trying to set a null value for a ...
k
Hey. I am Karan from foodmarkethub. I am facing a issue where I am trying to set a null value for a session variable inside jwt hasura claim and after calling Session.createJWT(JWT, JWT_EXPIRE_TIME), I am getting error stack:'Error: Request failed with status code 500' . I want to set it to null in order to verify some permissions on hasura end. Can anyone please help with this?
r
Hey!
This might be a bug. Can you open an issue about this?
Also, if possible, can u use something other than a json null?
For example, if you set it to undefined instead, it will remove that field from the JWT. Would that work?
Or you could set it to a string null
k
I was trying to use an empty string but while checking the variable in hasura permission, it is not able to compare empty string with uuid format field.
r
Hmmm.
But it can do null checks?
k
yes
r
What about checking if the key exists?
Vs it being null
k
We can't check the key either on hasura
r
Hmm. Okay. I’ll checkout this bug. If you can open an issue about it, I’ll do it tomorrow itself
k
Ok I will raise an issue. Thanks
r
Thanks