How to set claims on trigger supabase.
Hi, I'm trying to set the claims of newly registered user on supabase. I have figured I have to use trigger functions to set claims whether a new user is created/registered. Similar to handle_new_user function of user management starter in sql editor. I just thought of adding the line
https://github.com/supabase-community/supabase-custom-claims.
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.https://github.com/supabase-community/supabase-custom-claims.