diff --git a/packages/insomnia/src/ui/routes/auth.authorize.tsx b/packages/insomnia/src/ui/routes/auth.authorize.tsx index 00f73b55875..9ba9d80e279 100644 --- a/packages/insomnia/src/ui/routes/auth.authorize.tsx +++ b/packages/insomnia/src/ui/routes/auth.authorize.tsx @@ -6,6 +6,7 @@ import { invariant } from '../../utils/invariant'; import { SegmentEvent } from '../analytics'; import { getLoginUrl, submitAuthCode } from '../auth-session-provider'; import { Icon } from '../components/icon'; +import { showSettingsModal } from '../components/modals/settings-modal'; import { Button } from '../components/themed-button'; export const action: ActionFunction = async ({ @@ -16,7 +17,7 @@ export const action: ActionFunction = async ({ invariant(typeof data?.code === 'string', 'Expected code to be a string'); const error = await submitAuthCode(data.code); if (error) { - const humanReadableError = error?.message === 'TypeError: Failed to fetch' ? 'Network failed, try again.' : error?.message; + const humanReadableError = error?.message === 'Failed to fetch' ? 'Network failed, please try again. If the problem persists, check your network and proxy settings.' : error?.message; return { errors: { message: humanReadableError, @@ -152,6 +153,13 @@ const Authorize = () => { Go Back + );