Files
Zero/pnpm-workspace.yaml
Ahmet Kilinc 85c29ea10f update better-auth and graceful auth error (#1279)
# Improved Authentication Error Handling

## Description

This PR enhances the login experience by adding proper error handling for authentication failures. It adds an error alert component to the login page that displays when authentication fails, and configures the auth system to redirect users back to the login page with an error parameter when authentication errors occur.

The changes include:
- Added an error alert component on the login page that shows when the 'error' query parameter is present
- Configured `onAPIError` in the auth config to redirect to the login page on authentication failures
- Updated the better-auth dependency from 1.2.8 to 1.2.9

## Type of Change

- [x] 🎨 UI/UX improvement

## Areas Affected

- [x] User Interface/Experience
- [x] Authentication/Authorization

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Added an alert message on the login page to inform users when a login attempt fails.

- **Chores**
  - Updated the version of the authentication package to improve reliability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-10 13:53:24 -07:00

29 lines
540 B
YAML

packages:
- apps/*
- packages/*
- scripts/*
catalog:
zod: ^3.25.42
better-auth: ^1.2.9
autumn-js: ^0.0.48
superjson: ^2.2.2
'@trpc/server': ^11.1.4
'@trpc/client': ^11.1.4
'@trpc/tanstack-react-query': ^11.1.4
wrangler: ^4.18.0
typescript: ^5.8.3
drizzle-orm: ^0.43.1
drizzle-kit: ^0.31.1
'@types/node': ^22.15.21
'react': ^19.1.0
'react-dom': ^19.1.0
onlyBuiltDependencies:
- core-js
- core-js-pure
- esbuild
- sharp
- unrs-resolver
- workerd
patchedDependencies:
novel: patches/novel.patch