Refresh clerk auth token when I switch orgs
In my code, I switch the organization, which prompts the clerk hook to reflect the change:
As expected,
org?.id is passed to the query reactively when I switch organizations. However, I've noticed that the JWT's gender field, where I've assigned the org_id, doesn't appear to refresh to the new organization's ID in sync. This discrepancy is causing my chat list to return as empty.Here's my query code
Here is my RLS code
I need the JWT to refresh immediately after an organization switch to ensure the correct data is being accessed.
