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: add api service and repositories #229

Merged
merged 23 commits into from
Aug 25, 2023
Merged

feat: add api service and repositories #229

merged 23 commits into from
Aug 25, 2023

Conversation

NanoNish
Copy link
Collaborator

No description provided.

@Path("versionNumber") String versionNumber,
);

// TODO: add token to all headers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NanoNish you don't have to do this. I have already implemented in the dio interceptors.

void onRequest(
RequestOptions options, RequestInterceptorHandler handler) async {
final token = await getToken?.call();
if (token != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NanoNish here is the implementation for inserting tokens. for reference.

Signed-off-by: Aman <aman2@me.iitr.ac.in>
Signed-off-by: Aman <aman2@me.iitr.ac.in>
@aman-singh7 aman-singh7 merged commit 9f863c6 into main Aug 25, 2023
1 of 2 checks passed
@NanoNish NanoNish deleted the services branch August 26, 2023 18:27
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.

2 participants