Fix token refresh by ensuring Google Chrome is installed#23
Open
Fix token refresh by ensuring Google Chrome is installed#23
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: undefined
When the access token expires, the script attempts to refresh it using selenium-side-runner, which requires Google Chrome. This commit adds a check to verify Chrome is installed before attempting token refresh, and automatically installs it if missing using the existing install-google-chrome.sh script. Fixes #5 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 7e53add.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #5 - Resolves the token refresh failure when Google Chrome is not installed on the target machine.
Problem
When the VK access token expires, the
execute.shscript attempts to automatically refresh it usingselenium-side-runner, which requires Google Chrome to automate the browser login flow. However, if Chrome is not installed on the system, selenium-side-runner fails with:This prevents automatic token refreshing from working.
Solution
Modified
execute.shto check if Google Chrome is installed before attempting token refresh. If Chrome is not found, the script automatically runs the existinginstall-google-chrome.shscript to install it.Changes
command -v google-chromeinstall-google-chrome.shif neededTesting
The fix ensures that:
🤖 Generated with Claude Code