1
0
Fork 0
mirror of https://github.com/mautrix/discord.git synced 2026-05-15 13:46:55 -04:00
mautrix-discord/pkg/discordauth/NOTES.md

610 B

POST /api/v9/auth/login

request

...

response

new login location

HTTP 400

{
	"message": "Invalid Form Body",
	"code": 50035,
	"errors": {
		"login": {
			"_errors": [
				{
					"code": "ACCOUNT_LOGIN_VERIFICATION_EMAIL",
					"message": "New login location detected, please check your e-mail."
				}
			]
		}
	}
}

POST /api/v9/auth/authorize-ip

request

{
	"token": "..."
}

response

{
	"message": "Invalid authentication token",
	"code": 50014
}
  • UI prompts the user to log in again to get another link