mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 02:07:57 -06:00
fix: Update codegen of hive adapters
This commit is contained in:
@@ -192,25 +192,15 @@ class AuthenticationCubit extends Cubit<AuthenticationState> {
|
||||
final sessionManager = SessionManager([
|
||||
LanguageHeaderInterceptor(locale),
|
||||
]);
|
||||
try {
|
||||
await _addUser(
|
||||
localUserId,
|
||||
serverUrl,
|
||||
credentials,
|
||||
clientCertificate,
|
||||
sessionManager,
|
||||
// onPerformLogin: () async {
|
||||
// emit(AuthenticatingState(AuthenticatingStage.authenticating));
|
||||
// await Future.delayed(const Duration(milliseconds: 500));
|
||||
// },
|
||||
);
|
||||
await _addUser(
|
||||
localUserId,
|
||||
serverUrl,
|
||||
credentials,
|
||||
clientCertificate,
|
||||
sessionManager,
|
||||
);
|
||||
|
||||
return localUserId;
|
||||
} catch (error, stackTrace) {
|
||||
print(error);
|
||||
debugPrintStack(stackTrace: stackTrace);
|
||||
rethrow;
|
||||
}
|
||||
return localUserId;
|
||||
}
|
||||
|
||||
Future<void> removeAccount(String userId) async {
|
||||
|
||||
Reference in New Issue
Block a user