Skip to content

Commit

Permalink
sanity check on reading an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Jul 12, 2024
1 parent d6891aa commit feb0b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getServerSecrets } from './src/secrets';
const secrets = getServerSecrets((import.meta as any).env);

export default defineConfig({
secret: 'secrets.authSecret',
secret: secrets.authSecret,
providers: [
/**
* https://dashboard.int.identitysandbox.gov/service_providers/5237
Expand Down
1 change: 1 addition & 0 deletions packages/server/src/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type ServerSecrets = {
};

export const getServerSecrets = (env: ImportMetaEnv): ServerSecrets => {
throw new Error(`auth secret: ${env.AUTH_SECRET}`);
return {
loginGov: {
//clientId: 'urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:tts-10x-atj-dev-server-doj',
Expand Down

0 comments on commit feb0b0a

Please sign in to comment.