We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd04022 commit 0a91759Copy full SHA for 0a91759
2 files changed
@app/server/src/graphile.config.ts
@@ -23,6 +23,14 @@ export interface OurGraphQLContext {
23
logout(): Promise<void>;
24
}
25
26
+declare global {
27
+ namespace Express {
28
+ interface User {
29
+ session_id: string;
30
+ }
31
32
+}
33
+
34
const TagsFilePlugin = makePgSmartTagsFromFilePlugin(
35
// We're using JSONC for VSCode compatibility; also using an explicit file
36
// path keeps the tests happy.
@app/server/src/middleware/installPassport.ts
@@ -10,14 +10,6 @@ interface DbSession {
10
session_id: string;
11
12
13
-declare global {
14
- namespace Express {
15
- interface User {
16
- session_id: string;
17
- }
18
19
-}
20
-
21
export default async (app: Express) => {
22
passport.serializeUser((sessionObject: DbSession, done) => {
done(null, sessionObject.session_id);
0 commit comments