Skip to content

Commit abd697d

Browse files
committed
refactor: suppressed checks for these env vars as the .env file does not exist on CI
1 parent 0eb6910 commit abd697d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/app.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// See https://svelte.dev/docs/kit/types#app.d.ts
2-
// for information about these interfaces
31
declare global {
42
namespace App {
53
// interface Error {}
@@ -10,4 +8,13 @@ declare global {
108
}
119
}
1210

11+
declare module '$env/static/private' {
12+
export const SESSION_DURATION: string;
13+
export const SESSION_SECRET: string;
14+
export const ZITADEL_CLIENT_ID: string;
15+
export const ZITADEL_CLIENT_SECRET: string;
16+
export const ZITADEL_DOMAIN: string;
17+
export const ZITADEL_POST_LOGOUT_URL: string;
18+
}
19+
1320
export {};

src/lib/auth/auth.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
// @ts-ignore
2-
31
import { SvelteKitAuth } from '@auth/sveltekit';
42
import Zitadel from '@auth/sveltekit/providers/zitadel';
53
import { randomUUID } from 'crypto';
64
import * as oidc from 'openid-client';
75
import type { JWT } from '@auth/core/jwt';
86
import { ZITADEL_SCOPES } from './scopes';
9-
// @ts-nocheck
107
import {
118
SESSION_DURATION,
129
SESSION_SECRET,
13-
// @ts-nocheck
1410
ZITADEL_CLIENT_ID,
15-
// @ts-nocheck
1611
ZITADEL_CLIENT_SECRET,
17-
// @ts-nocheck
1812
ZITADEL_DOMAIN,
19-
// @ts-nocheck
2013
ZITADEL_POST_LOGOUT_URL,
2114
} from '$env/static/private';
2215

0 commit comments

Comments
 (0)