Skip to content

Commit

Permalink
👽 Auth error message updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak committed Mar 17, 2024
1 parent 5845dc8 commit 0614932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/helpers/minimal-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const minimalAuth = async (ctx: IExtRemixCtx) => {

if (
whoAmI.errors &&
whoAmI.errors[0].message === 'input: auth_me user not logged in'
whoAmI.errors[0].message === 'input: auth_me Unauthorized'
) {
return redirect(`${authBaseUrl}/login`);
}
Expand Down
3 changes: 2 additions & 1 deletion src/apps/console/routes/_a+/teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const loader = async (ctx: IRemixCtx) => {
{}
);
if (errors) {
return handleError(errors[0]);
throw errors[0];
}
accounts = data;

Expand All @@ -55,6 +55,7 @@ export const loader = async (ctx: IRemixCtx) => {
} catch (err) {
return handleError(err);
}

return {
accounts: accounts || [],
invites: invites || [],
Expand Down

0 comments on commit 0614932

Please sign in to comment.