Skip to content

Commit 1c6ae4e

Browse files
Update README.md
1 parent 3b0da95 commit 1c6ae4e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,14 @@ And for the Redirect Uri set it to the one from your `.env` file.
127127
Next create `init-mongo.js` in your working directory:
128128

129129
```js
130-
{
131-
{
132-
file.examples / init - mongo.js
133-
}
134-
}
130+
// This is only for initializing the db and creating the mailauth user
131+
132+
db = db.getSiblingDB("mailauth")
133+
db.createUser({
134+
user: "mailauth",
135+
pwd: "SECURE_PW", // This should match the one in your env
136+
roles: [{ role: "readWrite", db: "mailauth" }],
137+
})
135138
```
136139

137140
### Reverse Proxy

0 commit comments

Comments
 (0)