Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cancel-token): implement cancel token functionality for refresh token #26

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
39a7f8e
feat(error-interceptor): update handleUnauthenticatedUser params and …
singhtaranjeet Jul 12, 2023
a169ffc
feat(error-interceptor): use custom error and string path
singhtaranjeet Jul 12, 2023
0e094ff
fix(error-interceptor): type-cast issue
singhtaranjeet Jul 12, 2023
cf46f28
doc(error-interceptor): add doc comments
singhtaranjeet Jul 12, 2023
87c0597
refactor(error-interceptor): remove redundant isLoginApi check
singhtaranjeet Jul 13, 2023
033da00
feat(error-interceptor): implement cancel token implementation
singhtaranjeet Jul 13, 2023
c5e139d
feat(CancelTokenInterceptor): make it abstract
singhtaranjeet Jul 13, 2023
1baf3e9
refactor(cancel-token-interceptor): rename interceptor and update exp…
singhtaranjeet Jul 13, 2023
35c2a14
fix(errors): return error in toString
singhtaranjeet Jul 13, 2023
3b7fdc5
fix(error): add stacktrace info
singhtaranjeet Jul 14, 2023
928c66c
feat(error-interceptor): remove 300ms delay
singhtaranjeet Jul 25, 2023
50d58b8
feat(refresh-token-interceptor): implement refresh token interceptor
singhtaranjeet Aug 10, 2023
c1a593a
fix(error-interceptor): wrong type sent in UnauthenticatedError issue
singhtaranjeet Aug 18, 2023
4948b2c
feat(upgrade): use DioException instead of DioError
singhtaranjeet Aug 25, 2023
b506028
fix(dependency): use main-new
singhtaranjeet Aug 31, 2023
31e2969
feat(api-service): addition of patch method in api-service helper
Abhisheksainii Dec 7, 2023
61b0cb6
fix(pubspec): update dependencies and use main instead of main-new
singhtaranjeet Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions example2/lib/di/injector.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import 'package:example2/interceptor/auth_interceptor.dart';
import 'package:example2/interceptor/logging_interceptor.dart';
import 'package:example2/interceptor/network/network_info.dart';
import 'package:example2/interceptor/network_interceptor.dart';
import 'package:fa_flutter_api_client/fa_flutter_api_client.dart';
import 'package:fa_flutter_core/fa_flutter_core.dart';

import '../interceptor/auth_interceptor.dart';
import '../interceptor/logging_interceptor.dart';
import '../interceptor/network/network_info.dart';
import '../interceptor/network_interceptor.dart';

const _debugBaseUrl = 'https://fa-maapins-debug.fieldassist.io/api/';

final locator = GetIt.instance;
Expand Down
Loading
Loading