Skip to content

Commit

Permalink
curator/api: validate RECAPTCHA environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Oct 17, 2022
1 parent 287b9b6 commit 93e2dc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verification/curator-service/api/src/util/validate-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export default function validateEnv(): Readonly<{
SESSION_COOKIE_KEY: string;
STATIC_DIR: string;
DISEASE_NAME: string;
REACT_APP_RECAPTCHA_SITE_KEY: string;
RECAPTCHA_SECRET_KEY: string;
}> & {
readonly [varName: string]: string | boolean | number | undefined;
// eslint-disable-next-line indent
Expand Down Expand Up @@ -118,7 +120,7 @@ export default function validateEnv(): Readonly<{
desc: 'Name of the disease that should be displayed in Curator UI',
devDefault: 'COVID-19',
}),
RECAPTCHA_SITE_KEY: str({
REACT_APP_RECAPTCHA_SITE_KEY: str({
desc: 'Key for recaptcha component',
devDefault: '',
}),
Expand Down

0 comments on commit 93e2dc8

Please sign in to comment.