fix: improve auth error logging and display
This commit is contained in:
parent
61d6d8abfe
commit
0a06a15789
3 changed files with 5 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -43,3 +43,4 @@ storybook-static
|
|||
.changeset/*.md
|
||||
!.changeset/README.md
|
||||
.vercel
|
||||
packages/tool-ideas/data/tools-export.json
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ export default function SignInPage() {
|
|||
});
|
||||
|
||||
if (result.error) {
|
||||
setError(result.error.message || 'Failed to sign in');
|
||||
console.error('Sign in error:', result.error);
|
||||
setError(result.error.message || result.error.code || 'Failed to sign in');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ export default function SignUpPage() {
|
|||
});
|
||||
|
||||
if (result.error) {
|
||||
setError(result.error.message || 'Failed to create account');
|
||||
console.error('Sign up error:', result.error);
|
||||
setError(result.error.message || result.error.code || 'Failed to create account');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue