Skip to content

Commit

Permalink
remove old sign in (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-t-wang authored Oct 19, 2024
1 parent 4353c41 commit 2a331cc
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Footer from "@/components/Footer";
import { DEVELOPER_PORTAL } from "@/consts";
import { redirect, useRouter } from "next/navigation";
import { redirect } from "next/navigation";
import IDKitQR from "./IDKitQR";
import { MiniAppRouter } from "./MiniAppWrapper";

Expand All @@ -22,15 +22,6 @@ const LoginPage = async ({ searchParams }: Props) => {
code_challenge_method,
} = searchParams;

const router = useRouter();

// If window.WorldApp is defined redirect to /authorize again with the params
if (window.WorldApp) {
return router.replace(
`/authorize?response_type=${response_type}&client_id=${client_id}&redirect_uri=${redirect_uri}&scope=${scope}&state=${state}&nonce=${nonce}&response_mode=${response_mode}&code_challenge=${code_challenge}&code_challenge_method=${code_challenge_method}`
);
}

if (!ready || !client_id) {
const urlParams = new URLSearchParams({
code: "invalid_request",
Expand Down

0 comments on commit 2a331cc

Please sign in to comment.