barcode_scanner/lib/backend/schema/auth/auth_model.g.dart
mandreshope 9435907c28 feat: Adds session management and reception detail view
Updates the sign-in API endpoint to `/simpos/v1/sign_in`.
Captures the `set-cookie` header from successful sign-in responses and stores it as a `sessionId`.
Persists the session ID using secure storage and includes it in subsequent API requests via the `Cookie` header for improved session management.
Extends the `AuthModel` to include the new `sessionId` field.

Enables navigation from the reception list to a new reception details page, passing the selected reception's ID.
Refactors the `StockPickingCard` into a dedicated component and adds loading indicators to the reception list.
2025-07-29 13:45:24 +03:00

18 lines
624 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'auth_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_AuthModel _$AuthModelFromJson(Map<String, dynamic> json) => _AuthModel(
accessToken: json['access_token'] as String?,
dbName: json['db_name'] as String?,
uid: (json['uid'] as num?)?.toInt(),
refreshToken: json['refreshToken'] as String?,
name: json['name'] as String?,
username: json['username'] as String?,
sessionId: json['sessionId'] as String?,
);