mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 02:38:58 +00:00
companion: display truer error during oauth failure
This commit is contained in:
parent
d47ed39d6f
commit
49e57c2e7d
1 changed files with 2 additions and 1 deletions
|
|
@ -186,9 +186,10 @@ const interceptGrantErrorResponse = interceptor((req, res) => {
|
|||
const unwantedBody = 'error=Grant%3A%20missing%20session%20or%20misconfigured%20provider'
|
||||
if (body === unwantedBody) {
|
||||
logger.error(`grant.js responded with error: ${body}`, 'grant.oauth.error')
|
||||
res.set('Content-Type', 'text/plain')
|
||||
send([
|
||||
'Companion was unable to complete the OAuth process :(',
|
||||
'(Hint, try clearing your cookies and try again)'
|
||||
'Error: User session is missing or the Provider was misconfigured'
|
||||
].join('\n'))
|
||||
} else {
|
||||
send(body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue