Show real auth error on OAuth callback instead of generic message

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Calixte
2026-03-28 23:23:04 +01:00
parent 6051d741b5
commit d67aa41838

View File

@@ -2,7 +2,7 @@
<div class="min-h-screen bg-coffee-50 flex items-center justify-center">
<div class="text-center">
<div class="text-4xl mb-4"></div>
<p v-if="error" class="text-red-600">{{ error }}</p>
<p v-if="error || auth.error" class="text-red-600 max-w-sm px-4">{{ error || auth.error }}</p>
<p v-else class="text-coffee-600">Signing you in</p>
</div>
</div>
@@ -26,7 +26,7 @@ onMounted(async () => {
await shops.fetchAll()
router.replace('/')
} else {
error.value = 'Authentication failed. Please try again.'
error.value = auth.error ?? 'Authentication failed — check console for details.'
}
} catch (e) {
error.value = e instanceof Error ? e.message : 'Authentication error'