Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces JWT authentication support for API requests in API Dash. Users can now add JWT tokens to their requests for authentication. This feature ensures that requests to protected endpoints include the necessary authorization token when required.
Changes Introduced:
Added jwt_utils.dart to handle JWT encoding, decoding, validation, and storage.
Updated http_util.dart to include JWT token support in request headers when needed.
Implemented unit tests to verify JWT authentication functionality.
Related Issues
Closes #613
Checklist
I have gone through the contributing guide.
I have updated my branch and synced it with the project's main branch before making this PR.
I am using the latest Flutter stable branch
I have run the tests and all tests are passing.
Added/Updated Tests? No because there was an import issue coming.
OS on which you have developed and tested the feature
Windows