Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from reactioncommerce/akarshit-feat-add-token-…
Browse files Browse the repository at this point in the history
…secret

feat: removing token secret
  • Loading branch information
Akarshit authored Aug 18, 2021
2 parents ac67fa7 + 7686ecf commit 9aeaa64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const { str } = envalid;
export default envalid.cleanEnv(
process.env,
{
STORE_URL: str({ devDefault: "http://localhost:4000" }),
TOKEN_SECRET: str({ default: "UPDATE_THIS_SECRET" })
STORE_URL: str({ devDefault: "http://localhost:4000" })
},
{
dotEnvPath: null
Expand Down
3 changes: 1 addition & 2 deletions src/util/accountServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async (app) => {
if (accountsServer && accountsGraphQL) {
return { accountsServer, accountsGraphQL };
}
const { MONGO_URL, STORE_URL, TOKEN_SECRET } = config;
const { MONGO_URL, STORE_URL } = config;
const { context } = app;

const client = await mongoConnectWithRetry(MONGO_URL);
Expand All @@ -30,7 +30,6 @@ export default async (app) => {
accountsServer = new AccountsServer(
{
siteUrl: STORE_URL,
tokenSecret: TOKEN_SECRET,
db: accountsMongo,
enableAutologin: true,
ambiguousErrorMessages: false,
Expand Down

0 comments on commit 9aeaa64

Please sign in to comment.