Actually, two lines of javascript should already do the trick
await wwLib.wwPlugins.supabaseAuth.load(<instance-url>, <public-api-key>)
wwLib.wwPlugins.supabase.syncInstance()
But if you’re protecting page through our native feature (set page has private with or without roles) it will not work before we achieve our transition and remove our weweb-server (because he we still try to use the instance url and public api key you provided as plugin settings to check the user roles and give access to the page, it cannot be made dynamic)
In the coming weeks/months, the code above should be enough to make your usecase works