pixelfed / pixelfed-rn

Pixelfed mobile app
https://pixelfed.org/mobile-apps
GNU Affero General Public License v3.0
281 stars 35 forks source link

Auth Scope Tracking to prevent Admin Dashboard bugs #265

Open dansup opened 1 week ago

dansup commented 1 week ago

Now that we support fine-grained oauth scopes during login, we need to store them in mmkv to determine if we show the Admin dashboard button on the home feed.

If an admin without the proper scopes attempts to load the dashboard, the app will crash due to the missing scopes.

cc @Kwasow @Simon-Laux

dansup commented 1 week ago

We also need to start planning our multi-account strategy. I will make a new issue to track that, because it will impact this, we will need to segment our mmkv keys into per-account slots and handle account logins and switching accordingly.

dansup commented 1 week ago

266