π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
import "package:photos/core/configuration.dart";
import "package:photos/service_locator.dart";
extension UserConfig on Configuration {
int getUserIDV2() {
final int? userID = getUserID();
if (userID == null && !isLocalGalleryMode) {
throw StateError("Missing user ID in online mode");
}
return userID ?? -1;
}
}