What POST /api/login reads. It answers with Me and sets the session's cookie. An account with a second factor needs code too, from the app or a recovery code; without it, the answer is 401 with second factor needed.
POST /api/login
Me
code
second factor needed
Optional
What
POST /api/loginreads. It answers withMeand sets the session's cookie. An account with a second factor needscodetoo, from the app or a recovery code; without it, the answer is 401 withsecond factor needed.