Infosys Interview Question

Explain context api in react and how we can use that for authentication