Skip to content

Commit

Permalink
fix middleware auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartaithan committed May 16, 2024
1 parent 01453ce commit dcaa7ca
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ export const middleware: NextMiddleware = async (req) => {
}
}

const isAuth =
access_token !== undefined &&
refresh_token !== undefined &&
session != null;
const isAuth = access_token !== undefined && session != null;

console.info(
"middleware user",
Expand Down

0 comments on commit dcaa7ca

Please sign in to comment.