mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 17:15:50 -06:00
19 lines
495 B
Dart
19 lines
495 B
Dart
import 'package:hive/hive.dart';
|
|
import 'package:paperless_mobile/core/database/hive/hive_config.dart';
|
|
import 'package:paperless_mobile/features/login/model/client_certificate.dart';
|
|
|
|
part 'user_credentials.g.dart';
|
|
|
|
@HiveType(typeId: HiveTypeIds.localUserCredentials)
|
|
class UserCredentials extends HiveObject {
|
|
@HiveField(0)
|
|
final String token;
|
|
@HiveField(1)
|
|
final ClientCertificate? clientCertificate;
|
|
|
|
UserCredentials({
|
|
required this.token,
|
|
this.clientCertificate,
|
|
});
|
|
}
|