@baraskarnitin35
Here's the secured version of your code with proper type safety and error handling:
/