mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
feat: enhance AuthModel serialization with anyMap support and add default name for API key
This commit is contained in:
@@ -29,7 +29,7 @@ class _ApiKeyAuthFieldsState extends State<ApiKeyAuthFields> {
|
||||
super.initState();
|
||||
final apiAuth = widget.authData?.apikey;
|
||||
_keyController = TextEditingController(text: apiAuth?.key ?? '');
|
||||
_nameController = TextEditingController(text: apiAuth?.name ?? '');
|
||||
_nameController = TextEditingController(text: apiAuth?.name ?? 'x-api-key');
|
||||
_addKeyTo = apiAuth?.location ?? 'header';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user