Hello, I'm a new Box user and I'm trying to install Box Drive on my Windows 11 PC. When installing, I click to log in, it redirects to the Box page, I log in, but when it returns to the app it asks me to log in again and gets stuck in this loop. I checked the log file, following the steps in the site's FAQ, and the error appears to be related to PKCE validation. I'll attach the log file here to help you. I use Box for work and need to have Box access on my PC to streamline my workflow.
2026-05-27 08:34:15.530 5508 WARNING CompleteAuthenticati oauth2 OAuth2 token API request failed with error: pkce_verification_failed with description: PKCE verification has failed
2026-05-27 08:34:15.530 5508 WARNING CompleteAuthenticati box_authentication Attempting to retrieve auth tokens in exchange for code failed: OAuth2 token API request failed with error: pkce_verification_failed with description: PKCE verification has failed
2026-05-27 08:34:15.532 5508 INFO CompleteAuthenticati box_authentication Traceback (most recent call last):
File "box\app\box_authentication.py", line 352, in _retrieve_tokens_with_given_code
File "box\boxsdk\auth\oauth2.py", line 349, in get_token_with_auth_code
File "box\boxsdk\auth\oauth2.py", line 456, in _make_post_request_for_end_point
File "box\boxsdk\auth\oauth2.py", line 487, in _raise_exception_according_to_error_type
box.boxsdk.errors.oauth2_error.OAuth2ValidationException: OAuth2 token API request failed with error: pkce_verification_failed with description: PKCE verification has failed
2026-05-27 08:34:15.532 5508 WARNING CompleteAuthenticati box_authentication Generating reason code UIAuthFailReason.UNKNOWN_OAUTH_FAILURE alert for exception of type <class 'box.boxsdk.errors.oauth2_error.OAuth2ValidationException'>
2026-05-27 08:34:15.532 5508 INFO CompleteAuthenticati login_manager User is logged out. Showing login dialog.
2026-05-27 08:34:15.539 5508 INFO sendMetric_backgroun ui_requests_handler <IPC Call: sendMetric('LoginDialogExternalBrowser.xaml.cs', 'login_error', 0, 1, {'item_type': 'UNKNOWN_OAUTH_FAILURE'}) -> ?>
2026-05-27 08:34:15.539 5508 INFO sendMetric_backgroun ui_requests_handler <IPC Call: sendMetric('LoginDialogExternalBrowser.xaml.cs', 'login_error', 0, 1, {'item_type': 'UNKNOWN_OAUTH_FAILURE'}) -> None>