Upgrade User Role with Custom Auth (supabase)

What are you trying to do?
After user completes a payment I want to upgrade his user role in plasmic.

What have you tried so far?
I saw a post from last year when this was requested and it was not yet possible.
I was wondering if there was an update on this or if I have to code a custom work around?

Hi, this is not fully documented yet, but you can try to use ensurePlasmicAppUser while specifying the roleId of the user. plasmic/packages/auth-api/api/index.api.md at master · plasmicapp/plasmic · GitHub. Let me known if this supply your needs in this case.

Thanks for your reply. I will test this and let you know.