Only api key interceptor used
This commit is contained in:
parent
619a43eaed
commit
6044b787d5
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ class ApiController extends GetxController {
|
||||||
receiveTimeout: 3000.milliseconds,
|
receiveTimeout: 3000.milliseconds,
|
||||||
receiveDataWhenStatusError: true,
|
receiveDataWhenStatusError: true,
|
||||||
)),
|
)),
|
||||||
|
interceptors: [
|
||||||
|
ApiKeyAuthInterceptor(),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
_apiClientBase!.setApiKey("access-token", token);
|
_apiClientBase!.setApiKey("access-token", token);
|
||||||
return _apiClientBase!;
|
return _apiClientBase!;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue