Skip to content

Commit

Permalink
chore: remove unused searchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jul 10, 2024
1 parent fb969d0 commit 8e5f20a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/webauthn/auth/options/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { updateCurrentSession } from "@/app/lib/kv/simple-kv";
* Used for creating the options needs to authenticate with WebAuthn.
*/
export async function GET(request: NextRequest) {
const { searchParams, origin } = new URL(request.url);
const { origin } = new URL(request.url);
const cookieStore = cookies();
try {
const opts = await createLoginOpts(origin.replace("http://", "").replace("https://", ""));
Expand Down
2 changes: 1 addition & 1 deletion app/api/webauthn/register/options/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createRegOpts } from "../../create-opts";
* Used for creating the options needs to authenticate with WebAuthn.
*/
export async function GET(request: NextRequest) {
const { searchParams, origin } = new URL(request.url);
const { origin } = new URL(request.url);
const cookieStore = cookies();
try {
const opts = await createRegOpts(origin.replace("http://", "").replace("https://", ""));
Expand Down

0 comments on commit 8e5f20a

Please sign in to comment.