From f7261d223b512c57d3aa018228325d532a2cbe5d Mon Sep 17 00:00:00 2001 From: Suet-Fei Li Date: Tue, 17 Dec 2024 15:58:04 -0800 Subject: [PATCH] internal fix. PiperOrigin-RevId: 707283565 --- internal/platform/implementation/auth_status.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/platform/implementation/auth_status.h b/internal/platform/implementation/auth_status.h index 0c0a1493..00227836 100644 --- a/internal/platform/implementation/auth_status.h +++ b/internal/platform/implementation/auth_status.h @@ -44,7 +44,8 @@ enum AuthStatus { // Currently used as a way to signal an ETag mismatch. PRECONDITION_FAILED = 8, - // The operation failed due to insufficient permissions. + // Exclusively used to report when user did not consent to required scopes. + // Do NOT use this for another other scenarios. PERMISSION_DENIED = 9, // The resource exists, but the requested attribute of it does not. @@ -77,6 +78,9 @@ enum AuthStatus { // Receiving the authorization code failed because it took longer than the // timeout. AUTH_CODE_TIMEOUT_EXCEEDED = 18, + + // Used to report when user presses the cancel button during login process. + USER_CANCELED = 19, }; } // namespace nearby