Skip to content

Commit

Permalink
temp logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshschuler committed May 30, 2023
1 parent f702ece commit 3d8f06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ async function login(ctx: RouterContext<string>) {
const request = (await body.value) as LoginRequest;

const meResponse = await getDiscordProfile(request.accessToken!);
console.log("meResponse", meResponse?.id);
if (!isNullOrUndefined(meResponse)) {
const hashedAccessToken = await hashValue(request.accessToken);
console.log("Session: ", ctx.state.session);
ctx.state.session.set("accessToken", hashedAccessToken);
ctx.state.session.set("userId", meResponse!.id);

Expand Down

0 comments on commit 3d8f06e

Please sign in to comment.