-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
Signed-off-by: Aman <aman2@me.iitr.ac.in>
Signed-off-by: Aman <aman2@me.iitr.ac.in>
@Path("versionNumber") String versionNumber, | ||
); | ||
|
||
// TODO: add token to all headers |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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>
No description provided.