Auth0 interview question

How does OAuth work