Skip to content

Commit 1c1e9a2

Browse files
committed
fix login error
1 parent 0626c1d commit 1c1e9a2

File tree

3 files changed

+54
-70
lines changed

3 files changed

+54
-70
lines changed

ios/Flutter/Flutter.podspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib/common/net/interceptors/token_interceptor.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class TokenInterceptors extends InterceptorsWrapper {
2121
await initClient(_token);
2222
}
2323
}
24-
options.headers["Authorization"] = _token;
24+
if(_token != null) {
25+
options.headers["Authorization"] = _token;
26+
}
2527
return super.onRequest(options, handler);
2628
}
2729

0 commit comments

Comments
 (0)