Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit a595d9f

Browse files
committed
fix: fixes #24
1 parent 1556826 commit a595d9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/hooks/useAuth.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ const useAuth = () => {
150150
try {
151151
// Error check
152152
if (query.error) {
153-
throw new Error(query.error + "\n\n" + query.error_description);
153+
toast({
154+
title: query.error,
155+
description: query.error_description,
156+
status: "error",
157+
});
154158
}
155159

156160
// If the server returned an authorization code, attempt to exchange it for an access token

0 commit comments

Comments
 (0)