Skip to content

feat: refresh token mechanism#39

Merged
Lzyct merged 2 commits intomainfrom
feat/refresh-token-mechanism
Aug 9, 2025
Merged

feat: refresh token mechanism#39
Lzyct merged 2 commits intomainfrom
feat/refresh-token-mechanism

Conversation

@Lzyct
Copy link
Copy Markdown
Member

@Lzyct Lzyct commented Aug 9, 2025

What it does

  • Adds unit tests for the LoginResponse model in test/features/auth/data/datasources/models/login_response_test.dart.
  • Verifies JSON serialization and deserialization for the LoginResponse model.
  • Ensures proper handling of diagnostic, data, token, tokenType, and refreshToken fields.
  • Fix issue Refresh Token #32

How to test

  1. Run flutter test to execute the unit tests.
  2. Confirm that all tests pass without errors.
  3. Verify that the fromJson and toJson methods handle data correctly.

Screenshot

N/A

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
lib/features/auth/data/models/login_response.dart 100.00% <ø> (ø)
...s/auth/data/repositories/auth_repository_impl.dart 80.76% <100.00%> (ø)
lib/utils/services/hive/main_box.dart 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Lzyct Lzyct merged commit 24303ae into main Aug 9, 2025
3 checks passed
@Lzyct Lzyct linked an issue Aug 9, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refresh Token

1 participant