select set_claim(new.id, 'claims_admin', 'true'); inside the handle user function to set the claim/update claims of registered users. But, I'm getting error whenever newly registered with that line added. I'm not sure what's the issue, I can't tell if its type error or the new object is not yet being created.