Heat 1 tbsp. oil in a pan, add onions and chilies , fry till onions turn slightly golden. Add ginger…