Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use session token for family leave

ashilkn2b740c1f9dbf
diff --git a/mobile/apps/photos/lib/gateways/users/users_gateway.dart b/mobile/apps/photos/lib/gateways/users/users_gateway.dart
index 61bb21a1ef..729c90fac5 100644
--- a/mobile/apps/photos/lib/gateways/users/users_gateway.dart
+++ b/mobile/apps/photos/lib/gateways/users/users_gateway.dart
@@ -192,17 +192,8 @@ class UsersGateway {
/// Leave the family plan.
///
/// Endpoint: DELETE /family/leave
- ///
- /// Family management endpoints expect the dedicated `FAMILIES` JWT, not the
- /// app session token.
- Future<void> leaveFamilyPlan({
- String? authToken,
- }) async {
- final familiesToken = authToken ?? await getFamiliesAuthToken();
- await _enteDio.delete(
- "/family/leave",
- options: _familyAuthOptions(familiesToken),
- );
+ Future<void> leaveFamilyPlan() async {
+ await _enteDio.delete("/family/leave");
}
/// Create a family with the current user as the admin.