Skip to content

Commit

Permalink
log auth & error
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwit-y committed Nov 4, 2024
1 parent c866d45 commit 721e575
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/middleware/auth.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const authMiddleware: MiddlewareHandler = async (c, next) => {
if (accessToken) {
const srv = container.get<IUserService>(Instances.UserService);
const { data, error } = await srv.getUser(accessToken);
// console.log(accessToken);
console.log(data);
console.log(error);
if (data.user) {
c.set("user", { ...data });
}
Expand Down

0 comments on commit 721e575

Please sign in to comment.