-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(env): set default credentials when
.env
is not set (#1041)
- Loading branch information
Showing
6 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,7 @@ export const ACCOUNT_MAIL_SENDER = "[email protected]"; | |
export const JWT_TOKEN_EXPIRES = 15; // 15 min | ||
export const REFRESH_TOKEN_EXPIRES = 43200; // 30 days in minutes | ||
export const ACTIVATION_TOKEN_EXPIRES = 10080; // 7 days in minutes | ||
export const HASURA_GRAPHQL_JWT_SECRET = process.env | ||
.HASURA_GRAPHQL_JWT_SECRET ?? { | ||
type: "HS256", | ||
key: "a_pretty_long_secret_key_that_should_be_at_least_32_char", | ||
}; | ||
export const HASURA_GRAPHQL_JWT_SECRET = | ||
process.env.HASURA_GRAPHQL_JWT_SECRET ?? | ||
'{"type":"HS256","key":"a_pretty_long_secret_key_that_should_be_at_least_32_char"}'; | ||
export const BASE_URL = process.env.FRONTEND_HOST || `http://localhost:3000`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters