How would you react if job interviewer asked for the password of your email ID?
You wouldn't have had that problem if you lived in the People's Republic of California. :-)
I am a resident of California and in the state of California it is illegal under California Labor Code section 980 for a potential employer to do that:
(a) As used in this chapter, “social media” means an electronic service or account, or electronic content, including, but not limited to, videos, still photographs, blogs, video blogs, podcasts, instant and text messages, email, online services or accounts, or Internet Web site profiles or locations.
(b) An employer shall not require or request an employee or applicant for employment to do any of the following:
(1) Disclose a username or password for the purpose of accessing personal social media.
(2) Access personal social media in the presence of the employer.
(3) Divulge any personal social media, except as provided in subdivision (c).
(c) Nothing in this section shall affect an employer’s existing rights and obligations to request an employee to divulge personal social media reasonably believed to be relevant to an investigation of allegations of employee misconduct or employee violation of applicable laws and regulations, provided that the social media is used solely for purposes of that investigation or a related proceeding.
(d) Nothing in this section precludes an employer from requiring or requesting an employee to disclose a username, password, or other method for the purpose of accessing an employer-issued electronic device.
(e) An employer shall not discharge, discipline, threaten to discharge or discipline, or otherwise retaliate against an employee or applicant for not complying with a request or demand by the employer that violates this section. However, this section does not prohibit an employer from terminating or otherwise taking an adverse action against an employee or applicant if otherwise permitted by law.
(Amended by Stats. 2013, Ch. 76, Sec. 142. (AB 383) Effective January 1, 2014.)"
So, basically if that happened to me I'd point out that asking for that information violates California's labor laws. If the potential employer doesn't care I'd ask if the potential employer wants to go all in breaking the law by asking about my political, sexual and religious preferences.
In any case I'd report the violation and not want to work at a place like that anyway.