refactor: update AuthenticatedUser model to require id and remove password, enhance server URI handling in AddNewServer widget

This commit is contained in:
Dr-Blank 2024-10-04 02:31:51 -04:00
parent eda45efbce
commit fa815ae206
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
10 changed files with 297 additions and 72 deletions

View file

@ -12,9 +12,8 @@ _$AuthenticatedUserImpl _$$AuthenticatedUserImplFromJson(
server:
AudiobookShelfServer.fromJson(json['server'] as Map<String, dynamic>),
authToken: json['authToken'] as String,
id: json['id'] as String?,
id: json['id'] as String,
username: json['username'] as String?,
password: json['password'] as String?,
);
Map<String, dynamic> _$$AuthenticatedUserImplToJson(
@ -24,5 +23,4 @@ Map<String, dynamic> _$$AuthenticatedUserImplToJson(
'authToken': instance.authToken,
'id': instance.id,
'username': instance.username,
'password': instance.password,
};