Common Issues
gcloud CLI not found
gcloud CLI not found
Error Message:Cause:
The Google Cloud SDK (gcloud CLI) is not installed on your system or not in your PATH.Solution:
- Install the gcloud CLI from Google Cloud SDK documentation
- After installation, authenticate:
- Verify installation:
- Run
oauth-initagain
Not authenticated with gcloud
Not authenticated with gcloud
Error Message:Cause:
The gcloud CLI is installed but you’re not authenticated with a Google account.Solution:
- Authenticate with gcloud:
- Follow the browser prompts to complete authentication
- Verify authentication:
- Run
oauth-initagain
No Google Cloud projects found
No Google Cloud projects found
Error Message:Cause:
Your authenticated Google account has no Google Cloud projects.Solution:
- Visit Google Cloud Console
- Click “Create Project”
- Enter a project name and click “Create”
- Wait for the project to be created
- Run
oauth-initagain
Invalid Google Client ID format
Invalid Google Client ID format
Error Message:Cause:
The Client ID you entered doesn’t match the expected format for Google OAuth.Solution:
Google Client IDs should end with Make sure you:
.apps.googleusercontent.com. Example:- Copied the entire Client ID from the Google Cloud Console
- Didn’t include any extra spaces or characters
- Used the Client ID from an OAuth 2.0 Client (not an API key)
Invalid Discord Client ID
Invalid Discord Client ID
Error Message:Cause:
The Discord Client ID must be a 17-19 digit number.Solution:
Discord Client IDs are numeric snowflake IDs. Example:Make sure you:
- Go to Discord Developer Portal > Your App > OAuth2 > General
- Copy the “Client ID” (not the Client Secret)
- Paste only the numeric ID without any spaces
Discord Client Secret too short
Discord Client Secret too short
Error Message:Cause:
The Discord Client Secret must be at least 10 characters long.Solution:
- Go to Discord Developer Portal > Your App > OAuth2 > General
- Click “Reset Secret” if you don’t have a valid secret
- Copy the newly generated secret immediately (it’s only shown once)
- Make sure you copy the entire secret string
GitHub manifest conversion failed
GitHub manifest conversion failed
Error Message:Cause:
The GitHub App one-click setup failed to exchange the manifest code for credentials.Solution:
This can happen due to network issues or GitHub API problems. Try:
- Run
oauth-initagain - If it persists, choose “OAuth App” instead of “GitHub App” during setup
- Check your internet connection
- Verify you’re not behind a proxy that blocks GitHub API requests
Browser doesn't open automatically
Browser doesn't open automatically
Cause:
You might be in an SSH session, headless environment, or the The CLI will display URLs that you can manually copy and paste into your browser.
open command isn’t working.Solution:
Use the --no-open flag to prevent automatic browser opening:File permission errors when saving credentials
File permission errors when saving credentials
Cause:
The CLI doesn’t have write permissions in the current directory.Solution:
- Check your current directory permissions:
- Make sure you have write access to the directory
- If needed, change to a directory where you have write permissions
- Alternatively, choose “Print to console” when asked about save options
Existing .env file - should I append?
Existing .env file - should I append?
Prompt:Solution:
- Choose Yes to append the new credentials to your existing
.envfile - Choose No if you want to manually handle the credentials
- Consider using
.env.localif you’re working with a framework like Next.js to avoid committing secrets
Setup aborted / Operation cancelled
Setup aborted / Operation cancelled
Cause:
You pressed Ctrl+C or selected “Cancel” during the interactive prompts.Solution:
Simply run
oauth-init again when you’re ready to continue.General Debugging Tips
Enable Verbose Output
By default, OAuth Init provides detailed output. If you’re using--quiet mode and encountering issues, remove the flag:
Check Dependencies
For Google OAuth, ensure gcloud is installed:Verify Package.json
If callback URL detection isn’t working correctly, check that your auth library is listed inpackage.json:
Test Network Connectivity
Some providers require outbound connections:Getting Help
If you’re still experiencing issues:- Run with verbose output (without
--quiet) - Check the error message carefully
- Refer to provider-specific setup guides:
- Report issues on the GitHub repository