Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshschuler committed May 30, 2023
1 parent 92b4cb9 commit 90eb9de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ app.use(Session.initMiddleware(store, {
cookieSetOptions: {
httpOnly: true,
sameSite: "none",
secure: true,
},
}));

Expand Down
2 changes: 0 additions & 2 deletions api/src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ async function login(ctx: RouterContext<string>) {
const meResponse = await getDiscordProfile(request.accessToken!);
if (!isNullOrUndefined(meResponse)) {
const hashedAccessToken = await hashValue(request.accessToken);
console.error("hashed at");
console.error("Session missing ", ctx.state.session === undefined);
ctx.state.session.set("accessToken", hashedAccessToken);
ctx.state.session.set("userId", meResponse!.id);

Expand Down

0 comments on commit 90eb9de

Please sign in to comment.