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

Conversation

singhtaranjeet
Copy link
Collaborator

In this pr we are implementing following things

  • Created cancel token interceptor which provides functionality to add cancel token in the request options.
  • Create a new request cancel error.
  • functionality to cancel the error and generating new token.

@commit-lint
Copy link

commit-lint bot commented Jul 14, 2023

Features

  • version-upgrade: upgraded versions (acaecce)
  • cicd: upgrade java version from 1.8 -> 11 (3e728f9)
  • error-interceptor: update handleUnauthenticatedUser params and create isLoginApi method (9990ae8)
  • error-interceptor: use custom error and string path (ef4b0e1)
  • error-interceptor: implement cancel token implementation (0c86f14)
  • CancelTokenInterceptor: make it abstract (1b72e9a)
  • error-interceptor: remove 300ms delay (dedd2a7)
  • refresh-token-interceptor: implement refresh token interceptor (11b93e8)
  • upgrade: use DioException instead of DioError (e0dcaee)

Bug Fixes

  • error-interceptor: type-cast issue (a671c7e)
  • errors: return error in toString (d1c9a1a)
  • error: add stacktrace info (aedd501)
  • error-interceptor: wrong type sent in UnauthenticatedError issue (ee2068a)
  • dependency: use main-new (7087c67)

Doc

  • error-interceptor: add doc comments (ec8af86)

Code Refactoring

  • error-interceptor: remove redundant isLoginApi check (323322a)
  • cancel-token-interceptor: rename interceptor and update export files (5038b6d)

Contributors

singhtaranjeet

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@singhtaranjeet singhtaranjeet force-pushed the feat/refresh-token-handle branch 2 times, most recently from dc8bda5 to 9ef3b45 Compare July 14, 2023 09:57
singhtaranjeet and others added 17 commits June 17, 2024 23:24
…create isLoginApi method

Signed-off-by: Taranjeet Singh <[email protected]>
Signed-off-by: Taranjeet Singh <[email protected]>
Signed-off-by: Taranjeet Singh <[email protected]>
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.

3 participants