Defaultinator / defaultinator-api

MIT License
1 stars 2 forks source link

No initial admin api key on initial setup #2

Closed luciddr34m3r closed 2 years ago

luciddr34m3r commented 2 years ago

Right now you have to manually create the first admin key in mongo. Need an initialization function for first time setup.

luciddr34m3r commented 2 years ago

Throwing an error in the absence of this key isn't necessarily the best path forward but probably the most complete. Otherwise there are a lot of edge cases.

We will need to provide a meaningful error message if the variable is missing.