Skip to content

Commit

Permalink
fix(frontend): auth logic (#5390)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored Dec 3, 2024
1 parent 1b8104b commit 438f19c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ async function prepareApp() {

const queryClient = new QueryClient({
queryCache: new QueryCache({
onError: (error) => {
toast.error(error.message);
onError: (error, query) => {
if (!query.queryKey.includes("authenticated")) toast.error(error.message);
},
}),
defaultOptions: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default [
]),
]),

route("oauth", "routes/oauth.github.callback.tsx"),
route("oauth/github/callback", "routes/oauth.github.callback.tsx"),
] satisfies RouteConfig;

0 comments on commit 438f19c

Please sign in to comment.