supabase-community/supabase-custom-claims

Claims not working without reason.

myagizmaktav opened this issue · 2 comments

Bug report

Describe the bug

claims not working right know...

Screenshots

image
image
image

Description

You can see the user has app_metadata inside userrole is admin throughout photo 1.
this means claims this user has claimed userrole admin. And SQL function called set_claim is working.
The second proof is photo 2 . when you get a claim userrole with user_id is coming admin.
Photo third is RLS rules for this claims is pretty similar with docs.
The last one is in Photo 1 right corner you see data is null.
This means My RLS rule is not pass to my user role admin claim.

You haven't provided any information as to what is not working or what you have tried. This is not how you open an issue on an open source project. Please provide better title and description of the issue you are having, if possible even provide a minimal reproducable repository with the issue.

Fixed supabase/supabase#11408 (comment) .
create client options set : persistSession:false