fix(frontend): auth logic (#5390)

This commit is contained in:
sp.wack 2024-12-03 23:25:16 +04:00 committed by GitHub
parent 1b8104ba14
commit 438f19c80e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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: {

View File

@ -15,5 +15,5 @@ export default [
]),
]),
route("oauth", "routes/oauth.github.callback.tsx"),
route("oauth/github/callback", "routes/oauth.github.callback.tsx"),
] satisfies RouteConfig;