diff --git a/backend/src/baserow/api/user/schemas.py b/backend/src/baserow/api/user/schemas.py index ecf6e7c55f..eb12257983 100644 --- a/backend/src/baserow/api/user/schemas.py +++ b/backend/src/baserow/api/user/schemas.py @@ -79,8 +79,14 @@ authenticated_user_response_schema = { "oneOf": [ - success_create_user_response_schema, - two_factor_required_response_schema, + { + "title": "Without two-factor authentication", + **success_create_user_response_schema, + }, + { + "title": "With two-factor authentication", + **two_factor_required_response_schema, + }, ], } diff --git a/changelog/entries/unreleased/bug/improved_the_token_auth_endpoints_response_labels_so_that_de.json b/changelog/entries/unreleased/bug/improved_the_token_auth_endpoints_response_labels_so_that_de.json new file mode 100644 index 0000000000..7746a2f6e9 --- /dev/null +++ b/changelog/entries/unreleased/bug/improved_the_token_auth_endpoints_response_labels_so_that_de.json @@ -0,0 +1,9 @@ +{ + "type": "bug", + "message": "Improved the `token_auth` endpoint's response labels so that developers can differentiate between 2fa enabled and 2fa disabled responses.", + "issue_origin": "github", + "issue_number": null, + "domain": "core", + "bullet_points": [], + "created_at": "2025-12-30" +} \ No newline at end of file