mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 22:50:53 +00:00
[dart][dart-dio] Allow API key authentication with multiple API keys (#8728)
Remove the break stopping after the first key.
This commit is contained in:
parent
55292dd22b
commit
7704ff3d08
@ -20,7 +20,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user