But, I can’t for the life of me figure out how to get the client side role to update. If the user logs out and logs back in then they’ll get a new jwt and the client side role will be updated, but that’s not a great ux (having to log out and back in for your account to be updated). Could anyone point me in the right direction or give me any advice on this?
Yes indeed, there are some quirks to swyx’s Netlify Identity stack. I believe I addressed most of them in my pure-React implementation. I’d recommend giving it a try! The repository exposes the API interface but you can read more about why it exists and the history behind the three stacks here:
Otherwise indeed, as @snorkypie mentions, there are a number of great (long) Netlify Identity threads throughout the forum that you can search for. Client-side-refreshing after external changes are a … particular feature