From 582980154b3dcde5ed5eda9e6a71be05356ff684 Mon Sep 17 00:00:00 2001 From: Louis Chan Date: Tue, 16 Jul 2024 14:25:41 +0800 Subject: [PATCH] Add one more error response --- docs/specs/account-management-api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/specs/account-management-api.md b/docs/specs/account-management-api.md index 8c8855baf5..0bde240f41 100644 --- a/docs/specs/account-management-api.md +++ b/docs/specs/account-management-api.md @@ -163,6 +163,7 @@ Error response |If the OAuth provider account is already taken by another account|Invalid|InvariantViolated|`{"cause": { "kind": "DuplicatedIdentity" } }`| |If `token` is invalid|Invalid|AccountManagementOAuthTokenInvalid|| |If `exclude_state_in_authorization_url` is false, and `state` in `query` is not equal to the one bound to `token`|Invalid|AccountManagementOAuthStateNotBoundToToken|| +|If `token` is not bound to the current user|Invalid|AccountManagementOAuthTokenNotBoundToUser|| Here is some pseudo code that you should do