Skip to content

Commit

Permalink
fix: login issue, upgrade libs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks committed Sep 20, 2024
1 parent dbd1e56 commit 4e3a7da
Show file tree
Hide file tree
Showing 5 changed files with 365 additions and 369 deletions.
1 change: 0 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const loader = async ({request}: LoaderFunctionArgs) => {

export const links: LinksFunction = () => [
{href: tailwind, rel: 'stylesheet'},
/*{href: toastStyles, rel: 'stylesheet'},*/
...(cssBundleHref ? [{href: cssBundleHref, rel: 'stylesheet'}] : []),
];

Expand Down
3 changes: 2 additions & 1 deletion app/routes/_auth+/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const action: ActionFunction = async ({request}) => {

if (error) {
if (error instanceof Response) {
return jsonWithError({result: null}, error.message);
// authenticator throws a 302 Response on success
throw error;
}

if (error instanceof AuthorizationError) {
Expand Down
Loading

0 comments on commit 4e3a7da

Please sign in to comment.