Skip to main content
Solved

PKCE error after Box Drive login

  • May 27, 2026
  • 3 replies
  • 35 views

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>

 

Best answer by Rona Box

Hi ​@vinilimati

Welcome to Box Community, and we’ll help resolve your Box Drive login issue. 

 

You’d probably experienced this login loop because there is an active Google association with your Box account, and you are using the "Sign in with Google" flow.

 

To resolve this issue and break the login loop, please follow these steps:

  1. Open your web browser and log into your account directly at Box.com (do not use the Box Drive app for this step).
  2. Click on your user profile icon in the top-right corner of the page and select Account Settings.
  3. Click on the Integrations tab at the top of the settings page.
  4. Scroll down to the Applications linked to your account section. Locate Google in the list of linked applications and click the Reset association button next to it.
  5. Once the association is reset, open the Box Drive application on your Windows 11 PC and attempt to log in again. It should now successfully authenticate and complete the setup without looping.

Hope it works! Let us know in the Community should the issue persist. 

3 replies

Rona Box
  • Community Manager
  • Answer
  • May 30, 2026

Hi ​@vinilimati

Welcome to Box Community, and we’ll help resolve your Box Drive login issue. 

 

You’d probably experienced this login loop because there is an active Google association with your Box account, and you are using the "Sign in with Google" flow.

 

To resolve this issue and break the login loop, please follow these steps:

  1. Open your web browser and log into your account directly at Box.com (do not use the Box Drive app for this step).
  2. Click on your user profile icon in the top-right corner of the page and select Account Settings.
  3. Click on the Integrations tab at the top of the settings page.
  4. Scroll down to the Applications linked to your account section. Locate Google in the list of linked applications and click the Reset association button next to it.
  5. Once the association is reset, open the Box Drive application on your Windows 11 PC and attempt to log in again. It should now successfully authenticate and complete the setup without looping.

Hope it works! Let us know in the Community should the issue persist. 


  • Author
  • New Participant
  • June 2, 2026

It worked! Thank you very much. I had to try a few times to remove the Google login because I wasn't able to add a password, it kept throwing an error inside the account management page. I had to search on Google for a direct Box page for password change, and that did the trick. Everything is working now! Thanks again.


Rona Box
  • Community Manager
  • June 2, 2026

Hi ​@vinilimati, thank you for the update! We’re glad to hear that you’re up and running.