Whenever you're ready, walk me through how you'd approach this.
Explain what happens from an API perspective when you log in to a website.