Fix: Zoho login failed with "An error occurred"

The authorize request sent prompt=select_account, which Zoho doesn't
support (its only valid value is "consent"). Zoho showed a generic error
page instead of the sign-in screen. Drop the parameter.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
PhialsBasementandClaude Opus 5.5 committed 2026-09-25 12:34:46 +10:00
1 parent d451885216
commit 3a93daa6d8
1 file changed
+2 -1
+2 -1
View File
@@ -67,8 +67,9 @@ class ZohoOAuthConfig:
'scope': self.scopes,
'redirect_uri': redirect_uri,
'state': state,
# No `prompt`: Zoho rejects any value but "consent", which would
# make users re-approve the app on every login
'access_type': 'online',
'prompt': 'select_account',
}
return f'{self.accounts_url}/oauth/v2/auth?{urlencode(params)}'