Skip to content

Commit

Permalink
use set instead of map in middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartaithan committed Apr 23, 2024
1 parent 9fdf15f commit ca40d43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { exchangeRefreshTokenForAuthTokens } from "psn-api";
import { cookies } from "next/headers";
import { createClient } from "./utils/supabase/middleware";

const publicPages = new Map<string, boolean>([
["/signIn", true],
["/signUp", true],
["/setPassword", true],
["/forgot", true],
const publicPages = new Set<string>([
"/signIn",
"/signUp",
"/setPassword",
"/forgot",
]);

export const config = {
Expand Down

0 comments on commit ca40d43

Please sign in to comment.