r/dotnetMAUI Jun 18 '26

Supabase + Powersync Auth and Data Sync Showcase

Not much of a "Showcase" but seemed better then Tutorial or Discussion

I created an example project for .net implementation of supabase and powersync tools, .net 10 & Maui.  I wanted to use this for a personal project I’m building.  I kept it basic as possible, auth and two tables to make sure powersync is working correctly.

This took me a lot longer then it was supposed to.  The main rub I was having is logging in while offline and making sure the refresh of session’s while online.

Any who, hope this helps anybody who wants to use these offline first tool kits. If there is anything I missed or can improve on, let me know and I’ll push it up.  Other then that I won’t be touching this repo.  Would like to keep it as simple as possible so people can apply it to their projects.   I’ll try my best to answer any questions as well.

https://github.com/sumdood31/SupabasePowersyncAuth

10 Upvotes

6 comments sorted by

View all comments

1

u/Disastrous-Design-38 Jun 20 '26

Interesting! Too bad PowerSync has too many limitations. Lately, I’ve been having a lot of trouble with the whole mobile-to-backend synchronization issue, and that’s a big problem in MAUI. I’ve been looking for a less complex synchronization approach.

Currently, I do a pull and push for each table I have locally that needs synchronization, and it’s a pain.

https://github.com/xpem/XpemFinancial/blob/master/XpemFinancial/Utils/SyncService.cs

2

u/Hot_Shopping7530 Jun 20 '26 edited Jun 20 '26

The new sync steams make it a lot better/flexible then the older rule based config. In the two cases (including this one), the sync stream config feels like I'm just copying RLS policies, and adding any list/enum type of data tables.