feat: enhance AuthModel serialization with anyMap support and add default name for API key

This commit is contained in:
Udhay-Adithya
2025-06-19 14:22:02 +05:30
parent 5be9ffdcc1
commit 99e5fa7cbb
4 changed files with 15 additions and 9 deletions

View File

@@ -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';
}