diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 5b98150c..3f31ef3f 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -222,7 +222,7 @@ export async function setUser(jwt: string, inst: string, username?: string) { }) if (!user?.user) { toast({ - content: 'Failed to fetch your user.', + content: 'Your instance\'s API did not return your user data.', type: 'error', }) } @@ -269,7 +269,7 @@ async function userFromJwt( const site = await sitePromise.then((r) => { clearTimeout(timer) return r - }).catch((e) => { toast({ content: `Failed to load user data. ${e}` }) }) + }).catch((e) => { toast({ content: `Failed to contact the instance. ${e}` }) }) if (!site) return diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index f5b85e98..4a18be03 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -34,9 +34,9 @@ try { data.instance = data.instance.trim() - if (!(await validateInstance(data.instance))) { - throw new Error('Failed to contact that instance. Is it down?') - } + // if (!(await validateInstance(data.instance))) { + // throw new Error('Failed to contact that instance. Is it down?') + // } const response = await getClient(data.instance).login({ username_or_email: data.username.trim(),