Require access_token, device_id and user_id fields in /login response (#1210)

This commit is contained in:
Andrew Morgan 2022-08-16 18:12:10 +01:00 committed by GitHub
parent 1930824898
commit 5572d33453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1 @@
Clarify that the "device_id", "user_id" and "access_token" fields are required in the response body of `POST /_matrix/client/v3/login`.

View file

@ -210,6 +210,7 @@ paths:
form as the one returned from .well-known autodiscovery. form as the one returned from .well-known autodiscovery.
allOf: allOf:
- "$ref": "definitions/wellknown/full.yaml" - "$ref": "definitions/wellknown/full.yaml"
required: ["access_token", "device_id", "user_id"]
400: 400:
description: |- description: |-
Part of the request was invalid. For example, the login type may not be recognised. Part of the request was invalid. For example, the login type may not be recognised.