Skip to content

Commit

Permalink
fix: use correct cubit in JwtAuthIntercetor
Browse files Browse the repository at this point in the history
  • Loading branch information
adar2378 committed May 1, 2024
1 parent e4ddfb5 commit 7545061
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class JwtAuthInterceptor extends Interceptor {

@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
if (AuthCubit.instance.state.token != null) {
if (authCubit.state.token != null) {
options.headers['Authorization'] = 'Bearer ${authCubit.state.token}';
}
super.onRequest(options, handler);
Expand Down

0 comments on commit 7545061

Please sign in to comment.