We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7684968 commit d930b9aCopy full SHA for d930b9a
src/components/Auth/RightSide.jsx
@@ -270,17 +270,18 @@ export const RightSide = () => {
270
withCredentials: true,
271
})
272
.then((d) => d?.data);
273
-
274
- var check = await checkAuth();
275
- if (axres?.data?.is_signedup) {
276
- if (check.status) {
277
- navigate("/onboarding");
278
- }
279
- } else {
280
281
- navigate("/dashboard");
+ setTimeout(async () => {
+ var check = await checkAuth();
+ if (axres?.data?.is_signedup) {
+ if (check.status) {
+ navigate("/onboarding");
+ }
+ } else {
+ navigate("/dashboard");
282
283
}
284
+ }, 1000);
285
} catch (error) {
286
console.error("GitHub auth error:", error);
287
setIsProcessingGitHubCallback(false);
0 commit comments