Later Interview Question

How does authenticating users work?