End the session
curl -X POST "https://example.com/api/auth/logout"Start a session POST
The username field takes an email address or a username; both are matched case-insensitively. Returns 401 for any failed attempt without saying why. Distinguishing "no such user" from "wrong password" would turn the login form into a way to enumerate staff accounts, and answering differently for an address would turn it into a way to find out who has an account here.
Get current user GET
Who the session belongs to. The SPA calls this on load to decide what to show: the sign-in form, the link-your-VRChat-account page, or the app. Reachable before the VRChat link is done, because it is how the SPA finds out the link is not done. Called with an API key, `apiKey` names the key and lists what it may do right now, which is what every request with it is checked against: its own permissions, never more than the account holds. `permissionNames` beside it are the account's. Null for a session.