Skip to content

Commit

Permalink
fix: fix that plans were not showing after logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
qamarq committed Jan 14, 2025
1 parent f182f1e commit 9732917
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/app/api/callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { revalidatePath } from "next/cache";
import { cookies as cookiesPromise } from "next/headers";
import { redirect } from "next/navigation";
import type { NextRequest } from "next/server";

import { getAccessToken } from "@/lib/auth";
import { auth, getAccessToken } from "@/lib/auth";
import { usosService } from "@/services/usos";
import { createClient } from "@/services/usos/usos-client";

Expand Down Expand Up @@ -83,6 +82,6 @@ export const GET = async (request: NextRequest) => {
secure: true,
});

revalidatePath("/plans");
await auth(tokens);
return redirect("/plans");
};

0 comments on commit 9732917

Please sign in to comment.