Skip to content

Commit

Permalink
feat: print secret on sever-side logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Nov 11, 2023
1 parent ac26d8f commit 0a3e39a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import { expired, toResult } from "$lib/utility";
import jwtDecode from "jwt-decode";
import type { JWT } from "@auth/core/jwt";
import { redirect } from "@sveltejs/kit";
import { config } from "../config/server";

export const load: LayoutServerLoad = async ({ locals, route }) => {
const session: Session | null = await locals.getSession();

console.log(config);

const signIn =
session?.user != null &&
(session.access_token == null || expired(session.access_token, new Date()));
Expand Down

0 comments on commit 0a3e39a

Please sign in to comment.