mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix(frontend): auth logic (#5390)
This commit is contained in:
parent
1b8104ba14
commit
438f19c80e
@ -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: {
|
||||
|
||||
@ -15,5 +15,5 @@ export default [
|
||||
]),
|
||||
]),
|
||||
|
||||
route("oauth", "routes/oauth.github.callback.tsx"),
|
||||
route("oauth/github/callback", "routes/oauth.github.callback.tsx"),
|
||||
] satisfies RouteConfig;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user